enesmanan commited on
Commit
422c973
·
verified ·
1 Parent(s): b833f77

updade app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -8,7 +8,6 @@ import gradio as gr
8
  from dotenv import load_dotenv
9
  from scripts.review_summarizer import analyze_reviews
10
 
11
- # Load environment variables
12
  load_dotenv()
13
  GEMINI_API_KEY = os.getenv('GEMINI_API_KEY')
14
 
@@ -155,11 +154,7 @@ with gr.Blocks(title="Trendyol Yorum Analizi") as demo:
155
  gr.Markdown("""
156
  # Trendyol Yorum Analizi
157
 
158
- Bu uygulama, Trendyol ürün sayfasındaki yorumları analiz eder ve özetler.
159
-
160
- Kullanım:
161
- 1. Trendyol ürün yorumlar sayfasının URL'sini girin
162
- 2. 'Analiz Et' butonuna tıklayın
163
  """)
164
 
165
  with gr.Row():
@@ -176,13 +171,15 @@ with gr.Blocks(title="Trendyol Yorum Analizi") as demo:
176
  avg_rating = gr.Textbox(label="Ortalama Puan")
177
  positive_ratio = gr.Textbox(label="Olumlu Yorum Oranı")
178
 
 
 
 
179
  info_message = gr.Markdown()
180
 
181
  with gr.Row():
182
  sentiment_plot = gr.Plot()
183
  star_plot = gr.Plot()
184
 
185
- summary = gr.Markdown(label="📝 Genel Değerlendirme")
186
  error_message = gr.Markdown()
187
 
188
  analyze_btn.click(
 
8
  from dotenv import load_dotenv
9
  from scripts.review_summarizer import analyze_reviews
10
 
 
11
  load_dotenv()
12
  GEMINI_API_KEY = os.getenv('GEMINI_API_KEY')
13
 
 
154
  gr.Markdown("""
155
  # Trendyol Yorum Analizi
156
 
157
+ Bu uygulama, Trendyol ürün sayfasındaki yorumları çeker, analiz eder ve özetler.
 
 
 
 
158
  """)
159
 
160
  with gr.Row():
 
171
  avg_rating = gr.Textbox(label="Ortalama Puan")
172
  positive_ratio = gr.Textbox(label="Olumlu Yorum Oranı")
173
 
174
+
175
+
176
+ summary = gr.Markdown(label="📝 Genel Değerlendirme")
177
  info_message = gr.Markdown()
178
 
179
  with gr.Row():
180
  sentiment_plot = gr.Plot()
181
  star_plot = gr.Plot()
182
 
 
183
  error_message = gr.Markdown()
184
 
185
  analyze_btn.click(