Arcypojeb commited on
Commit
a6e8131
·
1 Parent(s): f9c615f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
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
- return response.text
 
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')