Spaces:
Sleeping
Sleeping
Start from empty
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def question_interface(question_state, answer):
|
|
37 |
|
38 |
|
39 |
with gr.Blocks() as blocks:
|
40 |
-
question_state = gr.State(value = {"value"
|
41 |
gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>"
|
42 |
+ title
|
43 |
+ "</h1>")
|
@@ -46,12 +46,12 @@ with gr.Blocks() as blocks:
|
|
46 |
with gr.Column():
|
47 |
textbox = gr.Textbox(
|
48 |
label="Question",
|
49 |
-
value=
|
50 |
interactive=False,
|
51 |
)
|
52 |
radio = gr.Radio(
|
53 |
label="Answer options",
|
54 |
-
choices=
|
55 |
#value=default_lang,
|
56 |
type="index",
|
57 |
interactive=True,
|
|
|
37 |
|
38 |
|
39 |
with gr.Blocks() as blocks:
|
40 |
+
question_state = gr.State(value = {"value":-1, "responses":[]})
|
41 |
gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>"
|
42 |
+ title
|
43 |
+ "</h1>")
|
|
|
46 |
with gr.Column():
|
47 |
textbox = gr.Textbox(
|
48 |
label="Question",
|
49 |
+
value="Натисніть Submit для того щоб розпочати тест",
|
50 |
interactive=False,
|
51 |
)
|
52 |
radio = gr.Radio(
|
53 |
label="Answer options",
|
54 |
+
choices=[],
|
55 |
#value=default_lang,
|
56 |
type="index",
|
57 |
interactive=True,
|