Chad commited on
Commit
2ce4574
·
1 Parent(s): 0541502

plewhhwhhefef

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -185,7 +185,11 @@ with gr.Blocks() as interface:
185
 
186
  def update_ui(language, profound_state):
187
  new_language, new_title, new_button_text, new_placeholder, new_send_label, new_reset_label, quiz_sub, quiz_len, quiz_but, help_but, profound_on, profound_off = toggle_language(language)
188
- profound_label = profound_off if profound_state else profound_on
 
 
 
 
189
  return (
190
  new_language, new_title, new_button_text,
191
  gr.update(placeholder=new_placeholder, value=""),
 
185
 
186
  def update_ui(language, profound_state):
187
  new_language, new_title, new_button_text, new_placeholder, new_send_label, new_reset_label, quiz_sub, quiz_len, quiz_but, help_but, profound_on, profound_off = toggle_language(language)
188
+
189
+ profound_label = profound_on
190
+ if not profound_state:
191
+ profound_label = profound_off
192
+
193
  return (
194
  new_language, new_title, new_button_text,
195
  gr.update(placeholder=new_placeholder, value=""),