groshanr commited on
Commit
6b10319
1 Parent(s): ade870b

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -76,6 +76,7 @@ def onSubmit(radio, scorebox):
76
  updateScore(radio)
77
  input_column = gr.Column(visible=False)
78
  output_column = gr.Column(visible=True)
 
79
  results = f"{answer} is correct. Good job!" if radio==answer else f"Incorrect. The correct answer was {answer}."
80
  scorebox = gr.Markdown(f"# Score: {score}")
81
 
@@ -89,10 +90,9 @@ with gr.Blocks() as demo:
89
  with gr.Column():
90
  scorebox = gr.Markdown(f"# Score: {score}")
91
  image = gr.Image(f'./assets/{answer}.jpeg', label=answer, show_label= False)
92
- # radio = gr.Radio(choices=minPairGroup, label='Which word is pictured?')
93
 
94
  with gr.Column(visible=True) as input_column:
95
- radio = gr.Radio(choices=minPairGroup, label='Which word is pictured?')
96
  submitButton = gr.Button("Submit")
97
 
98
  with gr.Column(visible=False) as output_column:
 
76
  updateScore(radio)
77
  input_column = gr.Column(visible=False)
78
  output_column = gr.Column(visible=True)
79
+ radio = gr.Radio(interactive=False)
80
  results = f"{answer} is correct. Good job!" if radio==answer else f"Incorrect. The correct answer was {answer}."
81
  scorebox = gr.Markdown(f"# Score: {score}")
82
 
 
90
  with gr.Column():
91
  scorebox = gr.Markdown(f"# Score: {score}")
92
  image = gr.Image(f'./assets/{answer}.jpeg', label=answer, show_label= False)
93
+ radio = gr.Radio(choices=minPairGroup, label='Which word is pictured?', interactive=True)
94
 
95
  with gr.Column(visible=True) as input_column:
 
96
  submitButton = gr.Button("Submit")
97
 
98
  with gr.Column(visible=False) as output_column: