Spaces:
Sleeping
Sleeping
read timeout evaluate 3min
Browse files
qwen_classifier/evaluate.py
CHANGED
|
@@ -183,7 +183,7 @@ def _evaluate_hf_api(file_path, hf_token=None):
|
|
| 183 |
"Authorization": f"Bearer {hf_token}",
|
| 184 |
"Content-Type": "application/json"
|
| 185 |
} if hf_token else {"Content-Type": "application/json"},
|
| 186 |
-
timeout=
|
| 187 |
)
|
| 188 |
response.raise_for_status() # Raise HTTP errors
|
| 189 |
return response.json()
|
|
|
|
| 183 |
"Authorization": f"Bearer {hf_token}",
|
| 184 |
"Content-Type": "application/json"
|
| 185 |
} if hf_token else {"Content-Type": "application/json"},
|
| 186 |
+
timeout=180
|
| 187 |
)
|
| 188 |
response.raise_for_status() # Raise HTTP errors
|
| 189 |
return response.json()
|