Update app.py
Browse files
app.py
CHANGED
@@ -10,8 +10,8 @@ def greet_para(params_text):
|
|
10 |
|
11 |
def greet(name):
|
12 |
client = Client("Renecto/queue_10_limit")
|
13 |
-
|
14 |
-
|
15 |
|
16 |
demo = gr.Interface(fn=greet_para, inputs="text", outputs="json")
|
17 |
demo.launch()
|
|
|
10 |
|
11 |
def greet(name):
|
12 |
client = Client("Renecto/queue_10_limit")
|
13 |
+
r = client.submit(name="Hello!!", api_name="/predict")
|
14 |
+
return r.result()
|
15 |
|
16 |
demo = gr.Interface(fn=greet_para, inputs="text", outputs="json")
|
17 |
demo.launch()
|