ranWang commited on
Commit
296c0e6
1 Parent(s): f104355

fix clear bug

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -752,10 +752,9 @@ def update_example_problem():
752
 
753
 
754
  def clear():
755
- problem_example_text, _ = get_random_problem()
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 = []