Spaces:
Running
Running
fistyee
commited on
Commit
·
d8cbf27
1
Parent(s):
b51c467
fix bug
Browse files- evaluation_processor.py +2 -8
evaluation_processor.py
CHANGED
@@ -68,17 +68,11 @@ class EvaluationProcessor:
|
|
68 |
params = {'taskId': task_id}
|
69 |
while True:
|
70 |
result_response = requests.get(self.result_url, headers=self.headers, params=params)
|
71 |
-
|
72 |
-
print(result_response)
|
73 |
if result_response.status_code == 200:
|
74 |
result_data = result_response.json()
|
75 |
status = result_data['data']['status']
|
76 |
-
print(result_data)
|
77 |
-
=======
|
78 |
-
if result_response.status_code == 200:
|
79 |
-
result_data = result_response.json()
|
80 |
-
status = result_data['data']['status']
|
81 |
-
>>>>>>> 74ce80e943b4ce0cd7adf97b446c53f154aaa6ef
|
82 |
if status in ['pending', 'processing']:
|
83 |
print(f'Task is still {status}...')
|
84 |
time.sleep(2)
|
|
|
68 |
params = {'taskId': task_id}
|
69 |
while True:
|
70 |
result_response = requests.get(self.result_url, headers=self.headers, params=params)
|
71 |
+
#print(result_response)
|
|
|
72 |
if result_response.status_code == 200:
|
73 |
result_data = result_response.json()
|
74 |
status = result_data['data']['status']
|
75 |
+
#print(result_data)
|
|
|
|
|
|
|
|
|
|
|
76 |
if status in ['pending', 'processing']:
|
77 |
print(f'Task is still {status}...')
|
78 |
time.sleep(2)
|