Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,8 @@ import gradio as gr
|
|
2 |
import pandas as pd
|
3 |
|
4 |
def process_excel(file):
|
5 |
-
df = pd.read_excel(file,
|
6 |
-
return df
|
7 |
|
8 |
-
iface = gr.Interface(fn=process_excel, inputs=gr.File(type='file',label='excle'), outputs=[gr.outputs.Dataframe(type='pandas')
|
9 |
iface.launch()
|
|
|
2 |
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.input.File(type='file',label='excle'), outputs=[gr.outputs.Dataframe(type='pandas')], title="Excel Processor")
|
9 |
iface.launch()
|