Spaces:
Sleeping
Sleeping
Fixed example bugs
Browse filesEvent listener "input" doesn't work on examples input, so unused input boxes aren't clear. Fixed by specifying unused value to blank.
app.py
CHANGED
@@ -39,8 +39,9 @@ with gr.Blocks(css="#htext span {white-space: pre-line}") as demo:
|
|
39 |
elem_id="htext",
|
40 |
label="Summary",
|
41 |
)
|
42 |
-
ctrlsum_file_examples = gr.Examples(examples=[["examples/H01-1042_body.txt", 50, "automatic evaluation technique"],["examples/H01-1042.pdf", 0, "automatic evaluation technique"]],
|
43 |
-
inputs=[ctrlsum_file, ctrlsum_file_length, ctrlsum_file_keywords])
|
|
|
44 |
|
45 |
|
46 |
|
|
|
39 |
elem_id="htext",
|
40 |
label="Summary",
|
41 |
)
|
42 |
+
ctrlsum_file_examples = gr.Examples(examples=[["examples/H01-1042_body.txt", 50, "automatic evaluation technique", "",""],["examples/H01-1042.pdf", 0, "automatic evaluation technique","",""]],
|
43 |
+
inputs=[ctrlsum_file, ctrlsum_file_length, ctrlsum_file_keywords, ctrlsum_str, ctrlsum_url])
|
44 |
+
|
45 |
|
46 |
|
47 |
|