kaicheng commited on
Commit
f27c18d
·
1 Parent(s): 3ef0c0c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,7 +3,7 @@ import pandas as pd
3
 
4
  def process_excel(file):
5
  df = pd.read_excel(file.name, encoding='utf-8')
6
- return df
7
 
8
- iface = gr.Interface(fn=process_excel, inputs=gr.inputs.File(type='file',label='excle'), outputs=[gr.outputs.Dataframe(type='pandas')], title="Excel Processor")
9
  iface.launch()
 
3
 
4
  def process_excel(file):
5
  df = pd.read_excel(file.name, encoding='utf-8')
6
+ return df.to_string()
7
 
8
+ iface = gr.Interface(fn=process_excel, inputs=gr.inputs.File(type='file',label='excle'), outputs='text', title="Excel Processor")
9
  iface.launch()