Spaces:
Running
on
Zero
Running
on
Zero
ai-forever
commited on
Commit
•
1bfbe04
1
Parent(s):
7579f5e
add return response_dict
Browse files- src/gigachat.py +1 -0
src/gigachat.py
CHANGED
@@ -126,6 +126,7 @@ def get_response_json(
|
|
126 |
try:
|
127 |
response = requests.post(url, headers=headers, data=payload, timeout=timeout)
|
128 |
response_dict = response.json()
|
|
|
129 |
except:
|
130 |
time.sleep(5)
|
131 |
attempt_num += 1
|
|
|
126 |
try:
|
127 |
response = requests.post(url, headers=headers, data=payload, timeout=timeout)
|
128 |
response_dict = response.json()
|
129 |
+
return response_dict
|
130 |
except:
|
131 |
time.sleep(5)
|
132 |
attempt_num += 1
|