Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -114,7 +114,7 @@ def cloze_quiz(state, answer):
|
|
114 |
|
115 |
# Function to start the quiz
|
116 |
def start_quiz(name):
|
117 |
-
hint = f"Hint: {cloze_questions[0]['hint']}
|
118 |
return (name, 0, 0, []), cloze_questions[0]["audio"], hint, gr.update(visible=False), gr.update(visible=True)
|
119 |
|
120 |
# Create the Gradio interface
|
@@ -142,8 +142,4 @@ with gr.Blocks() as iface:
|
|
142 |
start_button.click(start_quiz, inputs=name_input, outputs=[state, question_audio, hint_output, result_output, answer_input])
|
143 |
next_button.click(cloze_quiz, inputs=[state, answer_input], outputs=[state, question_audio, hint_output, result_output, answer_input])
|
144 |
|
145 |
-
# Add the hyperlink and image
|
146 |
-
gr.Markdown("<img src='https://github.com/englissi/englissi/blob/4f8a7cc7c7194132422e05081fd7d9502c3c4c65/Sample/image%20matching.webp' alt='Image' />")
|
147 |
-
gr.Markdown("[Click here to visit the matching game](http://englissi-matching.hf.space)")
|
148 |
-
|
149 |
iface.launch(share=True)
|
|
|
114 |
|
115 |
# Function to start the quiz
|
116 |
def start_quiz(name):
|
117 |
+
hint = f"Hint: {cloze_questions[0]['hint']} ◁◁◁ Check out this verb!"
|
118 |
return (name, 0, 0, []), cloze_questions[0]["audio"], hint, gr.update(visible=False), gr.update(visible=True)
|
119 |
|
120 |
# Create the Gradio interface
|
|
|
142 |
start_button.click(start_quiz, inputs=name_input, outputs=[state, question_audio, hint_output, result_output, answer_input])
|
143 |
next_button.click(cloze_quiz, inputs=[state, answer_input], outputs=[state, question_audio, hint_output, result_output, answer_input])
|
144 |
|
|
|
|
|
|
|
|
|
145 |
iface.launch(share=True)
|