Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -380,11 +380,11 @@ with gr.Blocks(title="Quiz Maker", theme=gr.themes.Default(primary_hue="green",
|
|
| 380 |
else:
|
| 381 |
print('10 questions not generated . So trying again!')
|
| 382 |
continue
|
| 383 |
-
|
| 384 |
-
|
| 385 |
-
|
| 386 |
-
|
| 387 |
-
|
| 388 |
|
| 389 |
print('Question radio list ' , question_radio_list)
|
| 390 |
|
|
|
|
| 380 |
else:
|
| 381 |
print('10 questions not generated . So trying again!')
|
| 382 |
continue
|
| 383 |
+
except Exception as e:
|
| 384 |
+
count+=1
|
| 385 |
+
print(f"Exception occurred: {e}")
|
| 386 |
+
print("Trying again...please wait")
|
| 387 |
+
continue
|
| 388 |
|
| 389 |
print('Question radio list ' , question_radio_list)
|
| 390 |
|