arxivgpt kim commited on
Commit
b62c2f3
ยท
verified ยท
1 Parent(s): 555186c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -4
app.py CHANGED
@@ -129,6 +129,12 @@ def get_grade(total_score):
129
 
130
 
131
  with gr.Blocks() as demo:
 
 
 
 
 
 
132
  with gr.Tab("1๋‹จ๊ณ„ ์ฒดํฌ๋ฆฌ์ŠคํŠธ"):
133
  answer1 = gr.Radio(choices=options[0], label=questions[0])
134
  answer2 = gr.Radio(choices=options[1], label=questions[1])
@@ -175,11 +181,13 @@ with gr.Blocks() as demo:
175
  score_output = gr.Number(label="์ด์ ")
176
  grade_output = gr.Text(label="๋“ฑ๊ธ‰")
177
  definition_output = gr.Textbox(label="๋“ฑ๊ธ‰ ์ •์˜")
178
-
 
179
  submit_btn.click(
180
  fn=calculate_score,
181
- 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],
182
- outputs=[score_output, grade_output, definition_output]
183
  )
184
 
185
- demo.launch()
 
 
129
 
130
 
131
  with gr.Blocks() as demo:
132
+ with gr.Tab("ํ”„๋กœ์ ํŠธ ์ •๋ณด"):
133
+ project_name = gr.Textbox(label="ํ”„๋กœ์ ํŠธ๋ช…")
134
+ contact_name = gr.Textbox(label="๋‹ด๋‹น์ž ์„ฑ๋ช…")
135
+ contact_phone = gr.Textbox(label="์—ฐ๋ฝ์ฒ˜")
136
+ contact_email = gr.Textbox(label="์ด๋ฉ”์ผ ์ฃผ์†Œ")
137
+
138
  with gr.Tab("1๋‹จ๊ณ„ ์ฒดํฌ๋ฆฌ์ŠคํŠธ"):
139
  answer1 = gr.Radio(choices=options[0], label=questions[0])
140
  answer2 = gr.Radio(choices=options[1], label=questions[1])
 
181
  score_output = gr.Number(label="์ด์ ")
182
  grade_output = gr.Text(label="๋“ฑ๊ธ‰")
183
  definition_output = gr.Textbox(label="๋“ฑ๊ธ‰ ์ •์˜")
184
+
185
+ # ํ•จ์ˆ˜ ํ˜ธ์ถœ ์‹œ, ์ƒˆ๋กœ ์ถ”๊ฐ€๋œ ์ž…๋ ฅ ๊ฐ’์„ ํฌํ•จํ•˜๋„๋ก ์ˆ˜์ •ํ•ฉ๋‹ˆ๋‹ค.
186
  submit_btn.click(
187
  fn=calculate_score,
188
+ inputs=[project_name, contact_name, contact_phone, contact_email, 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],
189
+ outputs=[result]
190
  )
191
 
192
+ demo.launch()
193
+