Spaces:
Runtime error
Runtime error
Update main.py
Browse files
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 |
-
|
| 13 |
query, # str in 'Message' Textbox component
|
| 14 |
api_name = "/chat"
|
| 15 |
)
|
| 16 |
-
|
|
|
|
|
|
| 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
|