Spaces:
Sleeping
Sleeping
no message
Browse files
app.py
CHANGED
|
@@ -9,10 +9,10 @@ def request(text):
|
|
| 9 |
if DEBUG_MODE:
|
| 10 |
gr.Markdown("client:" + str(client))
|
| 11 |
gr.Markdown(f"## Requesting prediction for: {text}")
|
| 12 |
-
result = client.
|
| 13 |
"Hello World", # str in 'text' Textbox component
|
| 14 |
#text,
|
| 15 |
-
api_name="/
|
| 16 |
)
|
| 17 |
if DEBUG_MODE:
|
| 18 |
gr.Markdown(f"## Prediction result: {result}")
|
|
|
|
| 9 |
if DEBUG_MODE:
|
| 10 |
gr.Markdown("client:" + str(client))
|
| 11 |
gr.Markdown(f"## Requesting prediction for: {text}")
|
| 12 |
+
result = client.echo(
|
| 13 |
"Hello World", # str in 'text' Textbox component
|
| 14 |
#text,
|
| 15 |
+
api_name="/echo"
|
| 16 |
)
|
| 17 |
if DEBUG_MODE:
|
| 18 |
gr.Markdown(f"## Prediction result: {result}")
|