Spaces:
Runtime error
Runtime error
File size: 390 Bytes
4c7ebd5 3546565 b23b938 3546565 |
1 2 3 4 5 6 7 8 9 10 |
import gradio as gr
import time
def my_function(x, progress=gr.Progress()):
progress(0, desc="Starting...")
time.sleep(1)
for i in progress.tqdm(range(100)):
time.sleep(0.1)
return x, gr.Textbox(visible=False)
# gr.Interface(my_function, gr.Textbox(), gr.Textbox()).queue().launch()
gr.Interface(my_function, gr.Textbox(), [gr.HTML(), gr.Textbox()]).queue().launch() |