nandezgarcia commited on
Commit
c2c9ca6
·
verified ·
1 Parent(s): 9c092e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -222,11 +222,11 @@ with gr.Blocks(title="Summary Chooser") as interface:
222
  result_box = gr.Textbox(label="Result")
223
 
224
  # Initialize with the first item
225
- text_id, text, sum_a, sum_b, prog = app.get_current_item()
226
- text_id_box.value = text_id
227
- text_box.value = text
228
- summary_a.value = sum_a
229
- summary_b.value = sum_b
230
  progress_label.value = prog
231
 
232
  # Set up event handlers
 
222
  result_box = gr.Textbox(label="Result")
223
 
224
  # Initialize with the first item
225
+ id, boe_text_cleaned, tweet_text_cleaned, tweet_original, prog = app.get_current_item()
226
+ text_id_box.value = id
227
+ text_box.value = boe_text_cleaned
228
+ summary_a.value = tweet_text_cleaned
229
+ summary_b.value = tweet_original
230
  progress_label.value = prog
231
 
232
  # Set up event handlers