Nuno-Tome commited on
Commit
721f108
1 Parent(s): 47cb3c7

no message

Browse files
Files changed (1) hide show
  1. app.py +5 -4
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
- "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}")
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}")