Spaces:
Sleeping
Sleeping
no message
Browse files
app.py
CHANGED
@@ -10,8 +10,8 @@ def request(text):
|
|
10 |
gr.Markdown("client:" + str(client))
|
11 |
gr.Markdown(f"## Requesting prediction for: {text}")
|
12 |
result = client.predict(
|
13 |
-
|
14 |
-
text,
|
15 |
api_name="/predict"
|
16 |
)
|
17 |
if DEBUG_MODE:
|
@@ -20,4 +20,4 @@ def request(text):
|
|
20 |
return result
|
21 |
|
22 |
|
23 |
-
io = gr.Interface(request, "textbox", "
|
|
|
10 |
gr.Markdown("client:" + str(client))
|
11 |
gr.Markdown(f"## Requesting prediction for: {text}")
|
12 |
result = client.predict(
|
13 |
+
"Hello World", # str in 'text' Textbox component
|
14 |
+
#text,
|
15 |
api_name="/predict"
|
16 |
)
|
17 |
if DEBUG_MODE:
|
|
|
20 |
return result
|
21 |
|
22 |
|
23 |
+
io = gr.Interface(request, "textbox", "json")
|