Spaces:
Runtime error
Runtime error
Commit
·
748f54e
1
Parent(s):
006b449
Update app.py
Browse files
app.py
CHANGED
|
@@ -65,8 +65,9 @@ def chat():
|
|
| 65 |
#return output
|
| 66 |
#Working!!!
|
| 67 |
|
| 68 |
-
|
| 69 |
-
return initial_response
|
|
|
|
| 70 |
|
| 71 |
if __name__ == '__main__':
|
| 72 |
#app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 7860)))
|
|
|
|
| 65 |
#return output
|
| 66 |
#Working!!!
|
| 67 |
|
| 68 |
+
return jsonify({'response': initial_response}) #OKed, working!
|
| 69 |
+
# return initial_response #JSONDecodeError: Expecting value: line 1 column 1 (char 0)
|
| 70 |
+
#Must return a json result
|
| 71 |
|
| 72 |
if __name__ == '__main__':
|
| 73 |
#app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 7860)))
|