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