Nuno-Tome commited on
Commit
f9bd500
·
1 Parent(s): 749138f
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -6,14 +6,13 @@ DEBUG_MODE = True
6
 
7
 
8
  def request(text):
9
- #result = client.echo(text, api_name="/predict")
10
- #return result
11
  result = client.predict(
12
- "Hello!!", # str in 'text' Textbox component
13
  api_name="/predict"
14
  )
15
  return result
16
 
17
- demo = gr.Interface(fn=request, inputs="textbox", outputs="textbox")
18
 
19
  demo.launch(share=True)
 
6
 
7
 
8
  def request(text):
9
+
 
10
  result = client.predict(
11
+ text,
12
  api_name="/predict"
13
  )
14
  return result
15
 
16
+ demo = gr.Interface(fn=request, inputs="textbox", outputs="json")
17
 
18
  demo.launch(share=True)