wasmdashai commited on
Commit
7f2d7a1
·
verified ·
1 Parent(s): ec4ab9a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -2
app.py CHANGED
@@ -1,7 +1,16 @@
1
  import gradio as gr
 
 
 
 
 
 
 
 
 
2
 
3
- def greet(name):
4
- return "Hello " + name + "!!"
5
 
6
  demo = gr.Interface(fn=greet, inputs="text", outputs="text")
7
  demo.launch()
 
1
  import gradio as gr
2
+ from gradio_client import Client
3
+ def greet(num):
4
+ client = Client("wasmdashai/RunTasking")
5
+
6
+ num=int(num)
7
+ for I in range(num):
8
+ result = client.predict(
9
+ num=3,
10
+ api_name="/run_train_epoch")
11
 
12
+
13
+ yield result
14
 
15
  demo = gr.Interface(fn=greet, inputs="text", outputs="text")
16
  demo.launch()