Spaces:
Runtime error
Runtime error
fix clear bug
Browse files
app.py
CHANGED
@@ -752,10 +752,9 @@ def update_example_problem():
|
|
752 |
|
753 |
|
754 |
def clear():
|
755 |
-
problem_example_text
|
756 |
return "", 0.1, "", problem_example_text, problem_example_text
|
757 |
|
758 |
-
|
759 |
with gr.Blocks(css=css, title="Math Olympiad Solver") as demo:
|
760 |
running_done = False
|
761 |
btn_list = []
|
|
|
752 |
|
753 |
|
754 |
def clear():
|
755 |
+
problem_example_text = get_random_problem()
|
756 |
return "", 0.1, "", problem_example_text, problem_example_text
|
757 |
|
|
|
758 |
with gr.Blocks(css=css, title="Math Olympiad Solver") as demo:
|
759 |
running_done = False
|
760 |
btn_list = []
|