Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -183,7 +183,7 @@ def main():
|
|
| 183 |
generate_direct_summary_btn = gr.Button('生成概要', variant="primary")
|
| 184 |
with gr.Row():
|
| 185 |
clear_direct_summary_btn = gr.Button('清除概要')
|
| 186 |
-
|
| 187 |
|
| 188 |
with gr.Row():
|
| 189 |
gr.Markdown("### 第二步: 文本抽取")
|
|
@@ -250,10 +250,9 @@ def main():
|
|
| 250 |
|
| 251 |
# ---------------------- Direct Text Summarization ----------------------
|
| 252 |
generate_direct_summary_btn.click(fn=generate_summary, inputs=[inputs_direct_text],
|
| 253 |
-
outputs=[
|
| 254 |
-
clear_direct_summary_btn.click(fn=clear_content, inputs=[], outputs=[inputs_direct_text,
|
| 255 |
|
| 256 |
-
|
| 257 |
# ---------------------- Summarization ----------------------
|
| 258 |
# To update the click event of the button, use generate_summary directly
|
| 259 |
generate_summary_btn.click(fn=generate_summary, inputs=[outputs_text],
|
|
|
|
| 183 |
generate_direct_summary_btn = gr.Button('生成概要', variant="primary")
|
| 184 |
with gr.Row():
|
| 185 |
clear_direct_summary_btn = gr.Button('清除概要')
|
| 186 |
+
|
| 187 |
|
| 188 |
with gr.Row():
|
| 189 |
gr.Markdown("### 第二步: 文本抽取")
|
|
|
|
| 250 |
|
| 251 |
# ---------------------- Direct Text Summarization ----------------------
|
| 252 |
generate_direct_summary_btn.click(fn=generate_summary, inputs=[inputs_direct_text],
|
| 253 |
+
outputs=[outputs_direct_summary_text])
|
| 254 |
+
clear_direct_summary_btn.click(fn=clear_content, inputs=[], outputs=[inputs_direct_text, outputs_direct_summary_text])
|
| 255 |
|
|
|
|
| 256 |
# ---------------------- Summarization ----------------------
|
| 257 |
# To update the click event of the button, use generate_summary directly
|
| 258 |
generate_summary_btn.click(fn=generate_summary, inputs=[outputs_text],
|