Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -39,7 +39,7 @@ def call_neirost4r(api_version, message, profile="friendly", flags=None):
|
|
| 39 |
if api_version in ["ai_v2", "ai_v3", "ai_v4", "ai_v5"]:
|
| 40 |
data["flags"] = flags
|
| 41 |
try:
|
| 42 |
-
response = requests.post(url, headers=headers, data=json.dumps(data), timeout=
|
| 43 |
return response.json()
|
| 44 |
except Exception as e:
|
| 45 |
return {"error": str(e)}
|
|
|
|
| 39 |
if api_version in ["ai_v2", "ai_v3", "ai_v4", "ai_v5"]:
|
| 40 |
data["flags"] = flags
|
| 41 |
try:
|
| 42 |
+
response = requests.post(url, headers=headers, data=json.dumps(data), timeout=600)
|
| 43 |
return response.json()
|
| 44 |
except Exception as e:
|
| 45 |
return {"error": str(e)}
|