Spaces:
Sleeping
Sleeping
GuysRGithub
commited on
Commit
•
6487bd3
1
Parent(s):
312916f
Update
Browse files
app.py
CHANGED
@@ -106,7 +106,7 @@ def chat():
|
|
106 |
payload = request.json
|
107 |
message = payload['message']
|
108 |
response = get_bot_response(message)
|
109 |
-
return response
|
110 |
|
111 |
subprocess.Popen(["autossh", "-M", "0" ,"-o", "StrictHostKeyChecking=no", "-i", "id_rsa", "-R", "guysmedchatt:80:localhost:7860", "serveo.net"])
|
112 |
# subprocess.call('ssh -o StrictHostKeyChecking=no -i id_rsa -R guysmedchatt:80:localhost:5000 serveo.net', shell=True)
|
|
|
106 |
payload = request.json
|
107 |
message = payload['message']
|
108 |
response = get_bot_response(message)
|
109 |
+
return {"message": response}
|
110 |
|
111 |
subprocess.Popen(["autossh", "-M", "0" ,"-o", "StrictHostKeyChecking=no", "-i", "id_rsa", "-R", "guysmedchatt:80:localhost:7860", "serveo.net"])
|
112 |
# subprocess.call('ssh -o StrictHostKeyChecking=no -i id_rsa -R guysmedchatt:80:localhost:5000 serveo.net', shell=True)
|