Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
@@ -76,10 +76,10 @@ def onSubmit(radio, scorebox):
|
|
76 |
updateScore(radio)
|
77 |
input_column = gr.Column(visible=False)
|
78 |
output_column = gr.Column(visible=True)
|
79 |
-
results = f"{
|
80 |
scorebox = gr.Markdown(f"# Score: {score}")
|
81 |
|
82 |
-
return scorebox, output_column, results, input_column
|
83 |
|
84 |
# the interface
|
85 |
with gr.Blocks() as demo:
|
|
|
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 |
|
82 |
+
return scorebox, radio, output_column, results, input_column
|
83 |
|
84 |
# the interface
|
85 |
with gr.Blocks() as demo:
|