Update app.py
Browse files
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 |
-
|
226 |
-
text_id_box.value =
|
227 |
-
text_box.value =
|
228 |
-
summary_a.value =
|
229 |
-
summary_b.value =
|
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
|