Spaces:
Build error
Build error
hellopahe
commited on
Commit
·
4d1745d
1
Parent(s):
f1ae6c0
add custom siblings
Browse files
app.py
CHANGED
|
@@ -71,22 +71,22 @@ with gr.Blocks() as app:
|
|
| 71 |
text_input_1 = gr.Textbox(label="请输入长文本:", lines=10, max_lines=1000)
|
| 72 |
with gr.Row():
|
| 73 |
text_button_1 = gr.Button("生成摘要")
|
| 74 |
-
siblings_input_1 = gr.Textbox("请输入摘要的宽度半径, 默认为0, 即显示摘要本身.")
|
| 75 |
-
num_input_1 = gr.Textbox("摘要的条数, 默认10条")
|
| 76 |
text_output_1 = gr.Textbox(label="摘要文本", lines=10)
|
| 77 |
with gr.Tab("shibing624/text2vec-base-chinese-paraphrase"):
|
| 78 |
text_input_2 = gr.Textbox(label="请输入长文本:", lines=10, max_lines=1000)
|
| 79 |
with gr.Row():
|
| 80 |
text_button_2 = gr.Button("生成摘要")
|
| 81 |
-
siblings_input_2 = gr.Textbox("请输入摘要的宽度半径, 默认为0, 即显示摘要本身.")
|
| 82 |
-
num_input_2 = gr.Textbox("
|
| 83 |
text_output_2 = gr.Textbox(label="摘要文本", lines=10)
|
| 84 |
with gr.Tab("LexRank-MiniLM-L12-v2"):
|
| 85 |
text_input_3 = gr.Textbox(label="请输入长文本:", lines=10, max_lines=1000)
|
| 86 |
with gr.Row():
|
| 87 |
text_button_3 = gr.Button("生成摘要")
|
| 88 |
-
siblings_input_3 = gr.Textbox("请输入摘要的宽度半径, 默认为0, 即显示摘要本身.")
|
| 89 |
-
num_input_3 = gr.Textbox("摘要的条数, 默认10条")
|
| 90 |
text_output_3 = gr.Textbox(label="摘要文本", lines=10)
|
| 91 |
with gr.Tab("相似度检测"):
|
| 92 |
with gr.Row():
|
|
|
|
| 71 |
text_input_1 = gr.Textbox(label="请输入长文本:", lines=10, max_lines=1000)
|
| 72 |
with gr.Row():
|
| 73 |
text_button_1 = gr.Button("生成摘要")
|
| 74 |
+
siblings_input_1 = gr.Textbox(label="请输入摘要的宽度半径, 默认为0, 即显示摘要本身.")
|
| 75 |
+
num_input_1 = gr.Textbox(label="摘要的条数, 默认10条")
|
| 76 |
text_output_1 = gr.Textbox(label="摘要文本", lines=10)
|
| 77 |
with gr.Tab("shibing624/text2vec-base-chinese-paraphrase"):
|
| 78 |
text_input_2 = gr.Textbox(label="请输入长文本:", lines=10, max_lines=1000)
|
| 79 |
with gr.Row():
|
| 80 |
text_button_2 = gr.Button("生成摘要")
|
| 81 |
+
siblings_input_2 = gr.Textbox(label="请输入摘要的宽度半径, 默认为0, 即显示摘要本身.")
|
| 82 |
+
num_input_2 = gr.Textbox(label="label=摘要的条数, 默认10条")
|
| 83 |
text_output_2 = gr.Textbox(label="摘要文本", lines=10)
|
| 84 |
with gr.Tab("LexRank-MiniLM-L12-v2"):
|
| 85 |
text_input_3 = gr.Textbox(label="请输入长文本:", lines=10, max_lines=1000)
|
| 86 |
with gr.Row():
|
| 87 |
text_button_3 = gr.Button("生成摘要")
|
| 88 |
+
siblings_input_3 = gr.Textbox(label="请输入摘要的宽度半径, 默认为0, 即显示摘要本身.")
|
| 89 |
+
num_input_3 = gr.Textbox(label="摘要的条数, 默认10条")
|
| 90 |
text_output_3 = gr.Textbox(label="摘要文本", lines=10)
|
| 91 |
with gr.Tab("相似度检测"):
|
| 92 |
with gr.Row():
|