theodotus commited on
Commit
07a7baf
·
1 Parent(s): 92e7f58

Start from empty

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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":0, "responses":[]})
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=questions[question_state.value["value"]],
50
  interactive=False,
51
  )
52
  radio = gr.Radio(
53
  label="Answer options",
54
- choices=answers,
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,