Nuno-Tome commited on
Commit
436113b
Β·
1 Parent(s): a529904

no message

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- #"Hello World", # str in 'text' Textbox component
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", "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")