Spaces:
Sleeping
Sleeping
arxivgpt kim
commited on
Update app.py
Browse files
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=[
|
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 |
+
|