Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -84,11 +84,12 @@ async def askQuestion2(question):
|
|
84 |
"Content-Type": "application/json"
|
85 |
}
|
86 |
|
87 |
-
response = requests.request("POST", url, json=payload, headers=headers)
|
88 |
|
89 |
-
print(response.text)
|
90 |
-
|
91 |
-
|
|
|
92 |
|
93 |
async def handleWebSocket(ws):
|
94 |
print('New connection')
|
|
|
84 |
"Content-Type": "application/json"
|
85 |
}
|
86 |
|
87 |
+
response = requests.request("POST", url, json=payload, headers=headers)
|
88 |
|
89 |
+
print(response.text)
|
90 |
+
return response.text
|
91 |
+
except Exception as e:
|
92 |
+
print(e)
|
93 |
|
94 |
async def handleWebSocket(ws):
|
95 |
print('New connection')
|