miojizzy commited on
Commit
939dc89
·
1 Parent(s): 14bc732

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -56,8 +56,19 @@ print("2:", os.path.join(os.path.dirname(__file__), "example/test.mp4") )
56
  # )
57
 
58
  #demo.queue().launch(debug=True)
 
 
 
 
 
 
 
59
 
60
- def combine(a, b):
 
 
 
 
61
  return a + " " + b
62
 
63
  with gr.Blocks() as demo:
 
56
  # )
57
 
58
  #demo.queue().launch(debug=True)
59
+ def my_function(x, progress=gr.Progress()):
60
+ progress(0, desc="Starting...")
61
+ time.sleep(1)
62
+ for i in progress.tqdm(range(100)):
63
+ time.sleep(0.1)
64
+ return x
65
+
66
 
67
+ def combine(a, b, progress=gr.Progress()):
68
+ progress(0, desc="Starting...")
69
+ time.sleep(1)
70
+ for i in progress.tqdm(range(100)):
71
+ time.sleep(0.1)
72
  return a + " " + b
73
 
74
  with gr.Blocks() as demo: