peachfawn commited on
Commit
ee12b05
Β·
verified Β·
1 Parent(s): 29850b6

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
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()