Rupnil commited on
Commit
956e575
·
1 Parent(s): f335863

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -2
main.py CHANGED
@@ -9,8 +9,9 @@ def hello():
9
  @app.route('/api/<string:query>')
10
  def api(query):
11
  client = Client("https://theblueberry-ai-mist-chat.hf.space/")
12
- result = client.predict(
13
  query, # str in 'Message' Textbox component
14
  api_name = "/chat"
15
  )
16
- return f'{"result": "{result}"}'
 
 
9
  @app.route('/api/<string:query>')
10
  def api(query):
11
  client = Client("https://theblueberry-ai-mist-chat.hf.space/")
12
+ result = client.predict(
13
  query, # str in 'Message' Textbox component
14
  api_name = "/chat"
15
  )
16
+
17
+ return result