Civarchivist commited on
Commit
1d121ab
·
verified ·
1 Parent(s): eebca9b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -206,13 +206,14 @@ with gr.Blocks(css=css) as demo:
206
  upload_progress = gr.Progress(0)
207
  output = gr.Markdown(label="Upload Progress")
208
 
209
- def run_test(word, progress):
210
  vout = slowly_reverse(word, progress)
211
  return None, vout
212
 
213
  submit_btn.click(
214
  fn=run_test,
215
- inputs=[input_text, upload_progress],
 
216
  outputs=[output, output_text]
217
  )
218
 
 
206
  upload_progress = gr.Progress(0)
207
  output = gr.Markdown(label="Upload Progress")
208
 
209
+ def run_test(word, progress = gr.Progress()):
210
  vout = slowly_reverse(word, progress)
211
  return None, vout
212
 
213
  submit_btn.click(
214
  fn=run_test,
215
+ # inputs=[input_text, upload_progress], # Does not work, progress has no id and therefore cannot be used an input.
216
+ inputs=[input_text],
217
  outputs=[output, output_text]
218
  )
219