Spaces:
Sleeping
Sleeping
YeongMin
commited on
Commit
ยท
08e1f5f
1
Parent(s):
5857750
0.8
Browse files
app.py
CHANGED
|
@@ -912,44 +912,44 @@ def create_gradio_app():
|
|
| 912 |
AI ๊ธฐ๋ฐ 3๋จ๊ณ ๋ถ์์ผ๋ก ๋ฆฌ๋ทฐ๋ฅผ ์๋์ผ๋ก ๊ฒ์ํ๊ณ ์ธ์ฌ์ดํธ๋ฅผ ์ถ์ถํฉ๋๋ค.
|
| 913 |
""")
|
| 914 |
|
| 915 |
-
#
|
| 916 |
with gr.Row():
|
| 917 |
-
|
| 918 |
-
|
| 919 |
-
|
| 920 |
-
|
| 921 |
-
|
| 922 |
-
|
| 923 |
-
|
| 924 |
-
|
| 925 |
-
|
| 926 |
-
|
| 927 |
-
|
| 928 |
-
|
| 929 |
-
|
| 930 |
-
|
| 931 |
-
|
| 932 |
-
|
| 933 |
-
|
| 934 |
-
|
| 935 |
-
|
| 936 |
-
|
| 937 |
-
|
| 938 |
-
|
| 939 |
-
|
| 940 |
-
|
|
|
|
|
|
|
|
|
|
| 941 |
|------|------|--------|------|
|
| 942 |
| - | - | - | - |
|
| 943 |
-
|
| 944 |
| ์ ์ฒด ํค | - | - | - |
|
| 945 |
""",
|
| 946 |
-
|
| 947 |
-
|
| 948 |
|
| 949 |
-
|
| 950 |
-
|
| 951 |
-
# 1๋จ๊ณ: ๊ฐ์ ๋ถ์
|
| 952 |
-
with gr.Column(scale=1):
|
| 953 |
gr.HTML('<div class="card-header sentiment-neutral">1๏ธโฃ ๊ฐ์ ๋ถ์</div>')
|
| 954 |
with gr.Group(elem_classes="metric-card"):
|
| 955 |
sentiment_output = gr.Textbox(
|
|
@@ -967,8 +967,7 @@ def create_gradio_app():
|
|
| 967 |
show_label=False
|
| 968 |
)
|
| 969 |
|
| 970 |
-
|
| 971 |
-
with gr.Column(scale=1):
|
| 972 |
gr.HTML('<div class="card-header sentiment-neutral">2๏ธโฃ ์นดํ
๊ณ ๋ฆฌ ๋ถ์</div>')
|
| 973 |
with gr.Group(elem_classes="metric-card"):
|
| 974 |
category_output = gr.Textbox(
|
|
@@ -985,8 +984,7 @@ def create_gradio_app():
|
|
| 985 |
show_label=False
|
| 986 |
)
|
| 987 |
|
| 988 |
-
|
| 989 |
-
with gr.Column(scale=1):
|
| 990 |
gr.HTML('<div class="card-header sentiment-neutral">3๏ธโฃ ๋ฆฌ๋ทฐ ํค ํ์ง</div>')
|
| 991 |
with gr.Group(elem_classes="metric-card"):
|
| 992 |
tone_output = gr.Textbox(
|
|
|
|
| 912 |
AI ๊ธฐ๋ฐ 3๋จ๊ณ ๋ถ์์ผ๋ก ๋ฆฌ๋ทฐ๋ฅผ ์๋์ผ๋ก ๊ฒ์ํ๊ณ ์ธ์ฌ์ดํธ๋ฅผ ์ถ์ถํฉ๋๋ค.
|
| 913 |
""")
|
| 914 |
|
| 915 |
+
# ์ข์ฐ ๋ ์ด์์: ์ผ์ชฝ์ ์
๋ ฅ, ์ค๋ฅธ์ชฝ์ ๋ถ์ ๊ฒฐ๊ณผ
|
| 916 |
with gr.Row():
|
| 917 |
+
# ์ผ์ชฝ: ์
๋ ฅ ์น์
|
| 918 |
+
with gr.Column(scale=6):
|
| 919 |
+
review_input = gr.Textbox(
|
| 920 |
+
label="๐ ๋ฆฌ๋ทฐ ์
๋ ฅ",
|
| 921 |
+
placeholder="๋ถ์ํ ๋ฆฌ๋ทฐ ๋ด์ฉ์ ์
๋ ฅํ์ธ์...",
|
| 922 |
+
lines=10,
|
| 923 |
+
max_lines=20
|
| 924 |
+
)
|
| 925 |
+
with gr.Row():
|
| 926 |
+
submit_btn = gr.Button("๐ ๋ถ์ ์์", variant="primary", size="lg")
|
| 927 |
+
clear_btn = gr.Button("์ด๊ธฐํ", variant="secondary", size="sm")
|
| 928 |
+
|
| 929 |
+
gr.Examples(
|
| 930 |
+
examples=examples,
|
| 931 |
+
inputs=review_input,
|
| 932 |
+
label="๐ก ์์ ๋ฆฌ๋ทฐ"
|
| 933 |
+
)
|
| 934 |
+
|
| 935 |
+
# ์ค๋ฅธ์ชฝ: ๋ถ์ ๊ฒฐ๊ณผ
|
| 936 |
+
with gr.Column(scale=4):
|
| 937 |
+
gr.Markdown("## ๐ ๋ถ์ ๊ฒฐ๊ณผ")
|
| 938 |
+
|
| 939 |
+
# ์ข
ํฉ ๋ถ์
|
| 940 |
+
gr.HTML('<div class="card-header sentiment-neutral">โ๏ธ ์ข
ํฉ ๋ถ์ & ์ธ์ฌ์ดํธ</div>')
|
| 941 |
+
comprehensive_output = gr.Markdown(
|
| 942 |
+
value="""
|
| 943 |
+
| ํญ๋ชฉ | ๊ฐ์ | ๋ง์กฑ๋ | ๊ทผ๊ฑฐ |
|
| 944 |
|------|------|--------|------|
|
| 945 |
| - | - | - | - |
|
|
|
|
| 946 |
| ์ ์ฒด ํค | - | - | - |
|
| 947 |
""",
|
| 948 |
+
show_label=False
|
| 949 |
+
)
|
| 950 |
|
| 951 |
+
# 3๋จ๊ณ ๋ถ์ - ์ธ๋ก๋ก ๋ฐฐ์น
|
| 952 |
+
# 1๋จ๊ณ: ๊ฐ์ ๋ถ์
|
|
|
|
|
|
|
| 953 |
gr.HTML('<div class="card-header sentiment-neutral">1๏ธโฃ ๊ฐ์ ๋ถ์</div>')
|
| 954 |
with gr.Group(elem_classes="metric-card"):
|
| 955 |
sentiment_output = gr.Textbox(
|
|
|
|
| 967 |
show_label=False
|
| 968 |
)
|
| 969 |
|
| 970 |
+
# 2๋จ๊ณ: ์นดํ
๊ณ ๋ฆฌ ๋ถ์
|
|
|
|
| 971 |
gr.HTML('<div class="card-header sentiment-neutral">2๏ธโฃ ์นดํ
๊ณ ๋ฆฌ ๋ถ์</div>')
|
| 972 |
with gr.Group(elem_classes="metric-card"):
|
| 973 |
category_output = gr.Textbox(
|
|
|
|
| 984 |
show_label=False
|
| 985 |
)
|
| 986 |
|
| 987 |
+
# 3๋จ๊ณ: ํค ํ์ง
|
|
|
|
| 988 |
gr.HTML('<div class="card-header sentiment-neutral">3๏ธโฃ ๋ฆฌ๋ทฐ ํค ํ์ง</div>')
|
| 989 |
with gr.Group(elem_classes="metric-card"):
|
| 990 |
tone_output = gr.Textbox(
|