Update app.py
Browse files
app.py
CHANGED
|
@@ -32,7 +32,7 @@ footer {visibility: hidden !important;}
|
|
| 32 |
"""
|
| 33 |
|
| 34 |
# ui
|
| 35 |
-
with gr.Blocks(css=css) as vui:
|
| 36 |
question_blocks = []
|
| 37 |
for i, question in enumerate(data['questions'], start=1):
|
| 38 |
with gr.Row():
|
|
@@ -47,7 +47,7 @@ with gr.Blocks(css=css) as vui:
|
|
| 47 |
def on_click(*args):
|
| 48 |
return check(args, correct_answers)
|
| 49 |
|
| 50 |
-
text_button.click(on_click, inputs=question_blocks, outputs=[text_output])
|
| 51 |
|
| 52 |
#end
|
| 53 |
vui.launch()
|
|
|
|
| 32 |
"""
|
| 33 |
|
| 34 |
# ui
|
| 35 |
+
with gr.Blocks(css=css, theme='YTheme/TehnoX') as vui:
|
| 36 |
question_blocks = []
|
| 37 |
for i, question in enumerate(data['questions'], start=1):
|
| 38 |
with gr.Row():
|
|
|
|
| 47 |
def on_click(*args):
|
| 48 |
return check(args, correct_answers)
|
| 49 |
|
| 50 |
+
text_button.click(on_click, inputs=question_blocks, outputs=[text_output], queue=False)
|
| 51 |
|
| 52 |
#end
|
| 53 |
vui.launch()
|