Spaces:
Runtime error
Runtime error
Commit ·
08a842b
1
Parent(s): 5d9c6ed
timeout update
Browse files
app.py
CHANGED
|
@@ -17,11 +17,11 @@ def eval(type:str, sub_task:str ,question:str,essay:str,api_key:str):
|
|
| 17 |
}
|
| 18 |
if (type=="Interpreting Visual Data"):
|
| 19 |
if (sub_task=="Academic"):
|
| 20 |
-
response = requests.post("https://api.skill2030.com/api/essaygrader/", headers=headers, json=payload, verify=False, timeout=
|
| 21 |
else:
|
| 22 |
-
response = requests.post("https://api.skill2030.com/api/essaygrader/", headers=headers, json=payload, verify=False, timeout=
|
| 23 |
else:
|
| 24 |
-
response = requests.post("https://api.skill2030.com/api/essaygrader/", headers=headers, json=payload, verify=False, timeout=
|
| 25 |
json_out=response.json()
|
| 26 |
|
| 27 |
|
|
|
|
| 17 |
}
|
| 18 |
if (type=="Interpreting Visual Data"):
|
| 19 |
if (sub_task=="Academic"):
|
| 20 |
+
response = requests.post("https://api.skill2030.com/api/essaygrader/", headers=headers, json=payload, verify=False, timeout=120)
|
| 21 |
else:
|
| 22 |
+
response = requests.post("https://api.skill2030.com/api/essaygrader/", headers=headers, json=payload, verify=False, timeout=120)
|
| 23 |
else:
|
| 24 |
+
response = requests.post("https://api.skill2030.com/api/essaygrader/", headers=headers, json=payload, verify=False, timeout=120)
|
| 25 |
json_out=response.json()
|
| 26 |
|
| 27 |
|