Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,7 +42,7 @@ def request_to_v2(message, cookie, user_id, channel_id,context=[]):
|
|
| 42 |
post_msg_data = json.dumps(post_msg_data)
|
| 43 |
print(post_msg_data)
|
| 44 |
|
| 45 |
-
|
| 46 |
response = requests.post(post_msg_url, headers=headers, data=post_msg_data, verify=False, stream=True)
|
| 47 |
print(response)
|
| 48 |
|
|
|
|
| 42 |
post_msg_data = json.dumps(post_msg_data)
|
| 43 |
print(post_msg_data)
|
| 44 |
|
| 45 |
+
try:
|
| 46 |
response = requests.post(post_msg_url, headers=headers, data=post_msg_data, verify=False, stream=True)
|
| 47 |
print(response)
|
| 48 |
|