pentarosarium commited on
Commit
2a0d401
·
1 Parent(s): 4feef77
Files changed (1) hide show
  1. app.py +11 -10
app.py CHANGED
@@ -182,7 +182,7 @@ def create_interface():
182
  control = ProcessControl()
183
 
184
  with gr.Blocks(theme=gr.themes.Soft()) as app:
185
- gr.Markdown("# AI-анализ мониторинга новостей v.1.12")
186
 
187
  with gr.Row():
188
  file_input = gr.File(
@@ -192,16 +192,17 @@ def create_interface():
192
  )
193
 
194
  with gr.Row():
195
- col1, col2 = gr.Columns(2)
196
- with col1:
197
  analyze_btn = gr.Button(
198
- "Начать анализ",
199
- variant="primary"
 
200
  )
201
- with col2:
202
  stop_btn = gr.Button(
203
- " Остановить",
204
- variant="stop"
 
205
  )
206
 
207
  with gr.Row():
@@ -219,9 +220,9 @@ def create_interface():
219
  )
220
 
221
  with gr.Row():
222
- with gr.Column():
223
  sentiment_plot = gr.Plot(label="Распределение тональности")
224
- with gr.Column():
225
  events_plot = gr.Plot(label="Распределение событий")
226
 
227
  def stop_processing():
 
182
  control = ProcessControl()
183
 
184
  with gr.Blocks(theme=gr.themes.Soft()) as app:
185
+ gr.Markdown("# AI-анализ мониторинга новостей v.1.13")
186
 
187
  with gr.Row():
188
  file_input = gr.File(
 
192
  )
193
 
194
  with gr.Row():
195
+ with gr.Column(scale=1):
 
196
  analyze_btn = gr.Button(
197
+ "▶️ Начать анализ",
198
+ variant="primary",
199
+ size="lg"
200
  )
201
+ with gr.Column(scale=1):
202
  stop_btn = gr.Button(
203
+ "⏹️ Остановить",
204
+ variant="stop",
205
+ size="lg"
206
  )
207
 
208
  with gr.Row():
 
220
  )
221
 
222
  with gr.Row():
223
+ with gr.Column(scale=1):
224
  sentiment_plot = gr.Plot(label="Распределение тональности")
225
+ with gr.Column(scale=1):
226
  events_plot = gr.Plot(label="Распределение событий")
227
 
228
  def stop_processing():