helliun commited on
Commit
dd1f2b9
·
verified ·
1 Parent(s): b522936

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -178,7 +178,7 @@ def submit_answer(category, num_categories, num_questions, questions, index, use
178
  return "", index, gr.update(visible=False), user_answers, results_df, gr.update(visible=False), gr.update(visible=False), gr.update(value=analysis, visible=True)
179
  else:
180
  question_text, _, _, visible = display_current_question(questions, index)
181
- return question_text, index, gr.update(visible=True), user_answers, gr.update(visible=False), gr.update(visible=True, value=0.5), gr.update(visible=True, value=None), gr.update(visible=False)
182
 
183
  # Gradio UI setup
184
  with gr.Blocks(theme="soft") as app:
 
178
  return "", index, gr.update(visible=False), user_answers, results_df, gr.update(visible=False), gr.update(visible=False), gr.update(value=analysis, visible=True)
179
  else:
180
  question_text, _, _, visible = display_current_question(questions, index)
181
+ return question_text, index, gr.update(visible=True), user_answers, gr.update(visible=False), gr.update(visible=True, value=0.5), gr.update(visible=False, value=None), gr.update(visible=False)
182
 
183
  # Gradio UI setup
184
  with gr.Blocks(theme="soft") as app: