peachfawn's picture
Create app.py
ee12b05 verified
raw
history blame
254 Bytes
import gradio as gr
import pandas as pd
# Load Excel file
df = pd.read_excel("data.xlsx")
# Function to return data
def get_data():
return df
# Create Gradio Interface
demo = gr.Interface(fn=get_data, inputs=[], outputs="dataframe")
demo.launch()