Commit
·
6289d5a
1
Parent(s):
c8538a0
111
Browse files- __pycache__/my_uie.cpython-310.pyc +0 -0
- app.py +3 -3
__pycache__/my_uie.cpython-310.pyc
CHANGED
|
Binary files a/__pycache__/my_uie.cpython-310.pyc and b/__pycache__/my_uie.cpython-310.pyc differ
|
|
|
app.py
CHANGED
|
@@ -65,10 +65,10 @@ with gr.Blocks(css="app.css") as demo:
|
|
| 65 |
gr.Markdown("文本情感分析")
|
| 66 |
text_input = gr.Textbox(lines=2, placeholder='在这里输入文本')
|
| 67 |
text_submit_button = gr.Button("提交文本情感分析")
|
| 68 |
-
|
| 69 |
# 增加两个输出框
|
| 70 |
-
|
| 71 |
-
|
| 72 |
|
| 73 |
# 让按钮处理两个输出
|
| 74 |
text_submit_button.click(text_emo_analysize, inputs=text_input, outputs=[text_output_1, text_output_2])
|
|
|
|
| 65 |
gr.Markdown("文本情感分析")
|
| 66 |
text_input = gr.Textbox(lines=2, placeholder='在这里输入文本')
|
| 67 |
text_submit_button = gr.Button("提交文本情感分析")
|
| 68 |
+
with gr.Column():
|
| 69 |
# 增加两个输出框
|
| 70 |
+
text_output_1 = gr.Textbox(label="文本情感")
|
| 71 |
+
text_output_2 = gr.Textbox(label="情感概率")
|
| 72 |
|
| 73 |
# 让按钮处理两个输出
|
| 74 |
text_submit_button.click(text_emo_analysize, inputs=text_input, outputs=[text_output_1, text_output_2])
|