janmariakowalski commited on
Commit
db2f589
verified
1 Parent(s): 2dd1610

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -12
app.py CHANGED
@@ -217,17 +217,7 @@ with gr.Blocks(theme=theme, css=".gradio-container {max-width: 960px !important;
217
  placeholder="Tutaj wpisz tekst..."
218
  )
219
 
220
- # Note: Output components are defined in the right column
221
- # We will define Examples after the right column is created.
222
-
223
- submit_btn = gr.Button("Analizuj tekst", variant="primary")
224
-
225
-
226
- with gr.Accordion("Szczeg贸艂owe wyniki", open=False) as accordion_scores:
227
- output_scores = gr.Label(label="Szczeg贸艂owe wyniki", visible=False, show_label=False)
228
-
229
- output_verdict = gr.Label(label="Wynik analizy", value="")
230
-
231
 
232
  # Right column for RESULTS
233
  with gr.Column(scale=1):
@@ -245,12 +235,21 @@ with gr.Blocks(theme=theme, css=".gradio-container {max-width: 960px !important;
245
  ],
246
  inputs=input_text,
247
  label="Przyk艂ady",
248
- outputs=[output_verdict, output_scores],
249
  fn=analyze_and_update,
250
  cache_examples=False,
251
  )
252
 
 
 
 
 
 
 
 
 
253
 
 
254
 
255
 
256
  submit_btn.click(
 
217
  placeholder="Tutaj wpisz tekst..."
218
  )
219
 
220
+
 
 
 
 
 
 
 
 
 
 
221
 
222
  # Right column for RESULTS
223
  with gr.Column(scale=1):
 
235
  ],
236
  inputs=input_text,
237
  label="Przyk艂ady",
238
+ #outputs=[output_verdict, output_scores],
239
  fn=analyze_and_update,
240
  cache_examples=False,
241
  )
242
 
243
+
244
+ with gr.Column()
245
+
246
+ submit_btn = gr.Button("Analizuj tekst", variant="primary")
247
+
248
+
249
+ with gr.Accordion("Szczeg贸艂owe wyniki", open=False) as accordion_scores:
250
+ output_scores = gr.Label(label="Szczeg贸艂owe wyniki", visible=False, show_label=False)
251
 
252
+ output_verdict = gr.Label(label="Wynik analizy", value="")
253
 
254
 
255
  submit_btn.click(