Spaces:
Sleeping
Sleeping
wasmdashai
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,16 @@
|
|
1 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
-
|
4 |
-
|
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()
|