Spaces:
Runtime error
Runtime error
Initial model commit
Browse files
app.py
CHANGED
@@ -207,7 +207,8 @@ def grade(file_obj, progress=gr.Progress()):
|
|
207 |
score = 0.0
|
208 |
flag = False
|
209 |
grade_sample_run_complete = True
|
210 |
-
except:
|
|
|
211 |
# gpt4 may have token rate limit
|
212 |
num_sleep += 1
|
213 |
if num_sleep > 12:
|
|
|
207 |
score = 0.0
|
208 |
flag = False
|
209 |
grade_sample_run_complete = True
|
210 |
+
except Exception as e:
|
211 |
+
print(e)
|
212 |
# gpt4 may have token rate limit
|
213 |
num_sleep += 1
|
214 |
if num_sleep > 12:
|