wing-nus commited on
Commit
4599ebe
1 Parent(s): fcaee69

Fixed example bugs

Browse files

Event listener "input" doesn't work on examples input, so unused input boxes aren't clear. Fixed by specifying unused value to blank.

Files changed (1) hide show
  1. app.py +3 -2
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