Update app.py
Browse files
app.py
CHANGED
@@ -202,5 +202,10 @@ py_exe=d_t.to_pandas()'''
|
|
202 |
dt_button=gr.Button("转换日期>>")
|
203 |
dt_output=gr.Textbox(label='输出处理的日期字符串')
|
204 |
dt_button.click(fx_rq,dt_input,dt_output,api_name='date_chinese')
|
205 |
-
|
|
|
|
|
|
|
|
|
|
|
206 |
demo.launch()
|
|
|
202 |
dt_button=gr.Button("转换日期>>")
|
203 |
dt_output=gr.Textbox(label='输出处理的日期字符串')
|
204 |
dt_button.click(fx_rq,dt_input,dt_output,api_name='date_chinese')
|
205 |
+
|
206 |
+
with gr.TabItem("读取word"):
|
207 |
+
file_input = gr.File(file_count="single",label="请选择需要读取的word文件",show_label=True)
|
208 |
+
text_output = gr.Textbox(label="输出读取文本",show_label=True)
|
209 |
+
dq_button = gr.Button("开始读取>>")
|
210 |
+
dq_button.click(wd, inputs=file_input, outputs=text_output,api_name="word-text")
|
211 |
demo.launch()
|