kaicheng commited on
Commit
f5bde56
·
1 Parent(s): 5f41846

Update app.py

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