Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
-
import json
|
2 |
import gradio as gr
|
|
|
3 |
|
4 |
def request_to_v2(message, cookie, user_id, channel_id,context=[]):
|
5 |
|
@@ -43,7 +44,7 @@ def request_to_v2(message, cookie, user_id, channel_id,context=[]):
|
|
43 |
print(post_msg_data)
|
44 |
|
45 |
try:
|
46 |
-
response = requests.post(post_msg_url, headers=headers, data=post_msg_data, verify=False,
|
47 |
bots = ""
|
48 |
print("a"*100)
|
49 |
for data in response.iter_lines():
|
|
|
1 |
+
import json
|
2 |
import gradio as gr
|
3 |
+
from curl_cffi import requests
|
4 |
|
5 |
def request_to_v2(message, cookie, user_id, channel_id,context=[]):
|
6 |
|
|
|
44 |
print(post_msg_data)
|
45 |
|
46 |
try:
|
47 |
+
response = requests.post(post_msg_url, headers=headers, data=post_msg_data, verify=False,timeout = timeout,impersonate="chrome110")
|
48 |
bots = ""
|
49 |
print("a"*100)
|
50 |
for data in response.iter_lines():
|