Update app.py
Browse files
app.py
CHANGED
|
@@ -112,7 +112,7 @@ def generate_tasks(req: TaskRequest):
|
|
| 112 |
}
|
| 113 |
|
| 114 |
try:
|
| 115 |
-
response = requests.post(
|
| 116 |
response.raise_for_status()
|
| 117 |
except Exception as e:
|
| 118 |
print(f"Failed to send data to server: {e}")
|
|
|
|
| 112 |
}
|
| 113 |
|
| 114 |
try:
|
| 115 |
+
response = requests.post(url, json=payload, timeout=5)
|
| 116 |
response.raise_for_status()
|
| 117 |
except Exception as e:
|
| 118 |
print(f"Failed to send data to server: {e}")
|