alecinvan commited on
Commit
5689dff
1 Parent(s): 8a1dfef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -3
app.py CHANGED
@@ -167,11 +167,15 @@ def main():
167
  with gr.Column():
168
 
169
  with gr.Row():
170
- gr.Markdown("### Step 01: 文本抽取")
171
 
172
  # Add a text box for direct input of text
173
  with gr.Row():
174
- inputs_direct_text = gr.Textbox(label="直接输入文本", lines=5)
 
 
 
 
175
 
176
  with gr.Row():
177
  with gr.Row():
@@ -179,7 +183,11 @@ def main():
179
  generate_direct_summary_btn = gr.Button('生成概要', variant="primary")
180
  with gr.Row():
181
  clear_direct_summary_btn = gr.Button('清除概要')
 
182
 
 
 
 
183
  with gr.Row():
184
  with gr.Column():
185
  with gr.Row():
@@ -226,7 +234,7 @@ def main():
226
  with gr.Column():
227
 
228
  with gr.Row():
229
- gr.Markdown("### Step 02: 翻译")
230
 
231
  with gr.Row():
232
  outputs_tr_text = gr.Textbox(label="Translate Content", lines=20)
 
167
  with gr.Column():
168
 
169
  with gr.Row():
170
+ gr.Markdown("### 第一步: 文本总结")
171
 
172
  # Add a text box for direct input of text
173
  with gr.Row():
174
+ inputs_direct_text = gr.Textbox(label="直接输入文本", lines=15)
175
+
176
+ # Text box to display the generated summary from direct input
177
+ with gr.Row():
178
+ outputs_direct_summary_text = gr.Textbox(label="生成的概要", lines=15)
179
 
180
  with gr.Row():
181
  with gr.Row():
 
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("### 第二步: 文本抽取")
190
+
191
  with gr.Row():
192
  with gr.Column():
193
  with gr.Row():
 
234
  with gr.Column():
235
 
236
  with gr.Row():
237
+ gr.Markdown("### 第三步: 翻译")
238
 
239
  with gr.Row():
240
  outputs_tr_text = gr.Textbox(label="Translate Content", lines=20)