Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import pandas as pd
|
|
3 |
|
4 |
def process_excel(file):
|
5 |
df = pd.read_csv(file.name, engine='openpyxl')
|
6 |
-
return df
|
7 |
|
8 |
-
iface = gr.Interface(fn=process_excel, inputs=
|
9 |
iface.launch()
|
|
|
3 |
|
4 |
def process_excel(file):
|
5 |
df = pd.read_csv(file.name, engine='openpyxl')
|
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()
|