changxin commited on
Commit
4d74152
1 Parent(s): 1a4bb19

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -118,7 +118,7 @@ with demo:
118
 
119
  with gr.TabItem("datatable"):
120
  gr.Markdown("# datatable测试")
121
- dt_input=gr.File(label="选择需要读取的文档",type='binary')
122
  dt_output=gr.DataFrame(label="输出table")
123
  dt_button=gr.Button("开始处理")
124
  dt_button.click(fx_dt, inputs=dt_input, outputs=dt_output,api_name='datatable')
 
118
 
119
  with gr.TabItem("datatable"):
120
  gr.Markdown("# datatable测试")
121
+ dt_input=gr.File(label="选择需要读取的文档",type='bytes')
122
  dt_output=gr.DataFrame(label="输出table")
123
  dt_button=gr.Button("开始处理")
124
  dt_button.click(fx_dt, inputs=dt_input, outputs=dt_output,api_name='datatable')