Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -82,7 +82,7 @@ def process_turn(user_answer, history):
|
|
82 |
final_text = ""
|
83 |
answer_update = gr.update(visible=True)
|
84 |
eval_update = gr.update(visible=False)
|
85 |
-
restart_update = gr.update(visible
|
86 |
devamet_update = gr.update(visible=False)
|
87 |
return (
|
88 |
assistant_update, # assistant_display
|
@@ -135,7 +135,7 @@ def evaluate_incorrect(final_state):
|
|
135 |
return (
|
136 |
new_text,
|
137 |
gr.update(visible=False), # btn_dogru gizle
|
138 |
-
gr.update(visible
|
139 |
gr.update(visible=False), # btn_restart gizle
|
140 |
gr.update(visible=True, value="Devam Et") # btn_devamet görünür
|
141 |
)
|
@@ -161,9 +161,9 @@ def continue_game(history):
|
|
161 |
gr.update(visible=True), # btn_hayir
|
162 |
gr.update(visible=True), # btn_bilmiyorum
|
163 |
gr.update(visible=False), # btn_dogru
|
164 |
-
gr.update(visible
|
165 |
"", # final_state
|
166 |
-
gr.update(visible
|
167 |
gr.update(visible=False) # btn_devamet
|
168 |
)
|
169 |
|
|
|
82 |
final_text = ""
|
83 |
answer_update = gr.update(visible=True)
|
84 |
eval_update = gr.update(visible=False)
|
85 |
+
restart_update = gr.update(visible=False)
|
86 |
devamet_update = gr.update(visible=False)
|
87 |
return (
|
88 |
assistant_update, # assistant_display
|
|
|
135 |
return (
|
136 |
new_text,
|
137 |
gr.update(visible=False), # btn_dogru gizle
|
138 |
+
gr.update(visible=False), # btn_yanlis gizle
|
139 |
gr.update(visible=False), # btn_restart gizle
|
140 |
gr.update(visible=True, value="Devam Et") # btn_devamet görünür
|
141 |
)
|
|
|
161 |
gr.update(visible=True), # btn_hayir
|
162 |
gr.update(visible=True), # btn_bilmiyorum
|
163 |
gr.update(visible=False), # btn_dogru
|
164 |
+
gr.update(visible=False), # btn_yanlis
|
165 |
"", # final_state
|
166 |
+
gr.update(visible=False), # btn_restart
|
167 |
gr.update(visible=False) # btn_devamet
|
168 |
)
|
169 |
|