kaicheng's picture
Update app.py
620c9a7
raw
history blame
307 Bytes
import gradio as gr
import pandas as pd
def process_excel(file):
df = pd.read_excel(file.name, encoding='utf-8')
return df
iface = gr.Interface(fn=process_excel, inputs=gr.input.File(type='file',label='excle'), outputs=[gr.outputs.Dataframe(type='pandas')], title="Excel Processor")
iface.launch()