arxivgpt kim commited on
Commit
9e4c86c
1 Parent(s): 933bb07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +31 -31
app.py CHANGED
@@ -112,49 +112,49 @@ with gr.Blocks() as demo:
112
  with gr.Tab("1단계 체크리스트"):
113
  answer1 = gr.Radio(choices=options[0], label=questions[0])
114
  answer2 = gr.Radio(choices=options[1], label=questions[1])
115
- answer1 = gr.Radio(choices=options[2], label=questions[2])
116
- answer2 = gr.Radio(choices=options[3], label=questions[3])
117
  with gr.Tab("2단계 체크리스트"):
118
- answer3 = gr.Radio(choices=options[4], label=questions[4])
119
- answer4 = gr.Radio(choices=options[5], label=questions[5])
120
- answer1 = gr.Radio(choices=options[6], label=questions[6])
121
- answer2 = gr.Radio(choices=options[7], label=questions[7])
122
  with gr.Tab("3단계 체크리스트"):
123
- answer1 = gr.Radio(choices=options[8], label=questions[8])
124
- answer2 = gr.Radio(choices=options[9], label=questions[9])
125
- answer1 = gr.Radio(choices=options[10], label=questions[10])
126
- answer2 = gr.Radio(choices=options[11], label=questions[11])
127
  with gr.Tab("4단계 체크리스트"):
128
- answer3 = gr.Radio(choices=options[12], label=questions[12])
129
- answer4 = gr.Radio(choices=options[13], label=questions[13])
130
- answer1 = gr.Radio(choices=options[14], label=questions[14])
131
- answer2 = gr.Radio(choices=options[15], label=questions[15])
132
  with gr.Tab("5단계 체크리스트"):
133
- answer1 = gr.Radio(choices=options[16], label=questions[16])
134
- answer2 = gr.Radio(choices=options[17], label=questions[17])
135
- answer1 = gr.Radio(choices=options[18], label=questions[18])
136
- answer2 = gr.Radio(choices=options[19], label=questions[19])
137
  with gr.Tab("6단계 체크리스트"):
138
- answer3 = gr.Radio(choices=options[20], label=questions[20])
139
- answer4 = gr.Radio(choices=options[21], label=questions[21])
140
- answer1 = gr.Radio(choices=options[22], label=questions[22])
141
- answer2 = gr.Radio(choices=options[23], label=questions[23])
142
  with gr.Tab("7단계 체크리스트"):
143
- answer3 = gr.Radio(choices=options[24], label=questions[24])
144
- answer4 = gr.Radio(choices=options[25], label=questions[25])
145
- answer1 = gr.Radio(choices=options[26], label=questions[26])
146
- answer2 = gr.Radio(choices=options[27], label=questions[27])
147
  with gr.Tab("최종 단계 체크리스트"):
148
- answer5 = gr.Radio(choices=options[28], label=questions[28])
149
- answer6 = gr.Radio(choices=options[29], label=questions[29])
150
- answer1 = gr.Radio(choices=options[30], label=questions[30])
151
- answer2 = gr.Radio(choices=options[31], label=questions[31])
152
  submit_btn = gr.Button("제출")
153
  result = gr.Textbox(label="결과")
154
 
155
  submit_btn.click(
156
  fn=calculate_score,
157
- inputs=[answer1, answer2, answer3, answer4, answer5, answer6],
158
  outputs=result
159
  )
160
 
 
112
  with gr.Tab("1단계 체크리스트"):
113
  answer1 = gr.Radio(choices=options[0], label=questions[0])
114
  answer2 = gr.Radio(choices=options[1], label=questions[1])
115
+ answer3 = gr.Radio(choices=options[2], label=questions[2])
116
+ answer4 = gr.Radio(choices=options[3], label=questions[3])
117
  with gr.Tab("2단계 체크리스트"):
118
+ answer5 = gr.Radio(choices=options[4], label=questions[4])
119
+ answer6 = gr.Radio(choices=options[5], label=questions[5])
120
+ answer7 = gr.Radio(choices=options[6], label=questions[6])
121
+ answer8 = gr.Radio(choices=options[7], label=questions[7])
122
  with gr.Tab("3단계 체크리스트"):
123
+ answer9 = gr.Radio(choices=options[8], label=questions[8])
124
+ answer10 = gr.Radio(choices=options[9], label=questions[9])
125
+ answer11 = gr.Radio(choices=options[10], label=questions[10])
126
+ answer12 = gr.Radio(choices=options[11], label=questions[11])
127
  with gr.Tab("4단계 체크리스트"):
128
+ answer13 = gr.Radio(choices=options[12], label=questions[12])
129
+ answer14 = gr.Radio(choices=options[13], label=questions[13])
130
+ answer15 = gr.Radio(choices=options[14], label=questions[14])
131
+ answer16 = gr.Radio(choices=options[15], label=questions[15])
132
  with gr.Tab("5단계 체크리스트"):
133
+ answer17 = gr.Radio(choices=options[16], label=questions[16])
134
+ answer18 = gr.Radio(choices=options[17], label=questions[17])
135
+ answer19 = gr.Radio(choices=options[18], label=questions[18])
136
+ answer20 = gr.Radio(choices=options[19], label=questions[19])
137
  with gr.Tab("6단계 체크리스트"):
138
+ answer21 = gr.Radio(choices=options[20], label=questions[20])
139
+ answer22 = gr.Radio(choices=options[21], label=questions[21])
140
+ answer23 = gr.Radio(choices=options[22], label=questions[22])
141
+ answer24 = gr.Radio(choices=options[23], label=questions[23])
142
  with gr.Tab("7단계 체크리스트"):
143
+ answer25 = gr.Radio(choices=options[24], label=questions[24])
144
+ answer26 = gr.Radio(choices=options[25], label=questions[25])
145
+ answer27 = gr.Radio(choices=options[26], label=questions[26])
146
+ answer28 = gr.Radio(choices=options[27], label=questions[27])
147
  with gr.Tab("최종 단계 체크리스트"):
148
+ answer29 = gr.Radio(choices=options[28], label=questions[28])
149
+ answer30 = gr.Radio(choices=options[29], label=questions[29])
150
+ answer31 = gr.Radio(choices=options[30], label=questions[30])
151
+ answer32 = gr.Radio(choices=options[31], label=questions[31])
152
  submit_btn = gr.Button("제출")
153
  result = gr.Textbox(label="결과")
154
 
155
  submit_btn.click(
156
  fn=calculate_score,
157
+ inputs=[answer1, answer2, answer3, answer4, answer5, answer6, answer7, answer8, answer9, answer10, answer11, answer12, answer13, answer14, answer15, answer16, answer17, answer18,answer19, answer20, answer21, answer22, answer23, answer24, answer25, answer26, answer27, answer28, answer29, answer30, answer31, answer32 ],
158
  outputs=result
159
  )
160