Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
import pandas as pd
|
3 |
+
|
4 |
+
# Load Excel file
|
5 |
+
df = pd.read_excel("data.xlsx")
|
6 |
+
|
7 |
+
# Function to return data
|
8 |
+
def get_data():
|
9 |
+
return df
|
10 |
+
|
11 |
+
# Create Gradio Interface
|
12 |
+
demo = gr.Interface(fn=get_data, inputs=[], outputs="dataframe")
|
13 |
+
demo.launch()
|