Spaces:
Runtime error
Runtime error
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() | |