albertvillanova HF staff commited on
Commit
1f334e4
1 Parent(s): c7bf71a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,6 +5,6 @@ def my_function(x, progress=gr.Progress()):
5
  time.sleep(1)
6
  for i in progress.tqdm(range(100)):
7
  time.sleep(0.1)
8
- return progress, x
9
  # gr.Interface(my_function, gr.Textbox(), gr.Textbox()).queue().launch()
10
  gr.Interface(my_function, gr.Textbox(), [gr.Textbox(), gr.HTML()]).queue().launch()
 
5
  time.sleep(1)
6
  for i in progress.tqdm(range(100)):
7
  time.sleep(0.1)
8
+ return gr.Textbox(visible=False), x
9
  # gr.Interface(my_function, gr.Textbox(), gr.Textbox()).queue().launch()
10
  gr.Interface(my_function, gr.Textbox(), [gr.Textbox(), gr.HTML()]).queue().launch()