arxivgpt kim
commited on
Commit
โข
6b8f1f9
1
Parent(s):
8467a64
Update app.py
Browse files
app.py
CHANGED
@@ -106,8 +106,8 @@ scores = [[1, 0],
|
|
106 |
|
107 |
def calculate_score(*answers):
|
108 |
total_score = sum([scores[i][options[i].index(answer)] for i, answer in enumerate(answers)])
|
109 |
-
grade, definition = get_grade(total_score)
|
110 |
-
return total_score, grade, definition
|
111 |
|
112 |
|
113 |
def get_grade(total_score):
|
@@ -123,9 +123,11 @@ def get_grade(total_score):
|
|
123 |
|
124 |
for grade, (low, high, definition) in grades.items():
|
125 |
if low <= converted_score <= high:
|
126 |
-
return grade, definition
|
127 |
-
return "No Grade", ""
|
128 |
|
|
|
|
|
129 |
css = """
|
130 |
footer {
|
131 |
visibility: hidden;
|
@@ -202,9 +204,9 @@ button:hover {
|
|
202 |
|
203 |
|
204 |
with gr.Blocks(css=css) as demo:
|
205 |
-
gr.Markdown("# ์ฝ๋ ์ดํ
(KORating) ์
ํ ์ง๋จ ์๋น์ค", elem_id="title")
|
206 |
-
gr.Markdown("### ๋์งํธ์์ฐ ์ธ์ฆํ๊ฐ์ ๋ฆฌ๋ '์ฝ๋ ์ดํ
'(KORating) ์
ํ ์ง๋จ ์๋น์ค๋, ํฌ์์ ๋ณดํธ ๋ฐ ๊ฑด์ ํ ๊ฐ์์์ฐ ์ํ๊ณ ๊ตฌ์ถ์ ์ง์ํฉ๋๋ค.", elem_id="description1")
|
207 |
-
gr.Markdown("### ๊ธฐ๋ณธ ์ ๋ณด ์
๋ ฅ ํ ์ด 8๋จ๊ณ TAP(1๋จ๊ณ ~ ์ต์ข
8๋จ๊ณ๊น์ง) ํด๋ฆญ ํ ์
๋ ฅ ๋ฐ๋๋๋ค.", elem_id="description2")
|
208 |
|
209 |
|
210 |
with gr.Tab("์ง๋จ ๊ธฐ๋ณธ ์ ๋ณด ์
๋ ฅ"):
|
|
|
106 |
|
107 |
def calculate_score(*answers):
|
108 |
total_score = sum([scores[i][options[i].index(answer)] for i, answer in enumerate(answers)])
|
109 |
+
grade, definition = get_grade(total_score)
|
110 |
+
return total_score, grade, definition
|
111 |
|
112 |
|
113 |
def get_grade(total_score):
|
|
|
123 |
|
124 |
for grade, (low, high, definition) in grades.items():
|
125 |
if low <= converted_score <= high:
|
126 |
+
return grade, definition
|
127 |
+
return "No Grade", ""
|
128 |
|
129 |
+
# Powered by arxivgpt
|
130 |
+
|
131 |
css = """
|
132 |
footer {
|
133 |
visibility: hidden;
|
|
|
204 |
|
205 |
|
206 |
with gr.Blocks(css=css) as demo:
|
207 |
+
gr.Markdown("# ์ฝ๋ ์ดํ
(KORating) ์
ํ ์ง๋จ ์๋น์ค", elem_id="title")
|
208 |
+
gr.Markdown("### ๋์งํธ์์ฐ ์ธ์ฆํ๊ฐ์ ๋ฆฌ๋ '์ฝ๋ ์ดํ
'(KORating) ์
ํ ์ง๋จ ์๋น์ค๋, ํฌ์์ ๋ณดํธ ๋ฐ ๊ฑด์ ํ ๊ฐ์์์ฐ ์ํ๊ณ ๊ตฌ์ถ์ ์ง์ํฉ๋๋ค.", elem_id="description1")
|
209 |
+
gr.Markdown("### ๊ธฐ๋ณธ ์ ๋ณด ์
๋ ฅ ํ ์ด 8๋จ๊ณ TAP(1๋จ๊ณ ~ ์ต์ข
8๋จ๊ณ๊น์ง) ํด๋ฆญ ํ ์
๋ ฅ ๋ฐ๋๋๋ค.", elem_id="description2")
|
210 |
|
211 |
|
212 |
with gr.Tab("์ง๋จ ๊ธฐ๋ณธ ์ ๋ณด ์
๋ ฅ"):
|