Spaces:
Runtime error
Runtime error
mkw18
commited on
Commit
·
200f01e
1
Parent(s):
5fa2c5d
fix show ans
Browse files
app.py
CHANGED
@@ -101,7 +101,7 @@ def reset_state():
|
|
101 |
def show_hide_answer(answer, show_ans):
|
102 |
if show_ans:
|
103 |
show_ans = False
|
104 |
-
return gr.update(value=""), gr.update(value="Show Answer")
|
105 |
else:
|
106 |
show_ans = True
|
107 |
return gr.update(value=answer), gr.update(value="Hide Answer"), show_ans
|
|
|
101 |
def show_hide_answer(answer, show_ans):
|
102 |
if show_ans:
|
103 |
show_ans = False
|
104 |
+
return gr.update(value=""), gr.update(value="Show Answer"), show_ans
|
105 |
else:
|
106 |
show_ans = True
|
107 |
return gr.update(value=answer), gr.update(value="Hide Answer"), show_ans
|