VipDest commited on
Commit
0e44ceb
·
verified ·
1 Parent(s): 8cd3f44

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -0
app.py ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from prediction_script import predict # Import your prediction function
3
+
4
+ iface = gr.Interface(
5
+ fn=predict,
6
+ inputs=gr.inputs.Dataframe(
7
+ headers=["Store", "Holiday_Flag", "Temperature", "Fuel_Price", "CPI", "Unemployment",
8
+ "Weekly_Sales_Lag1", "Weekly_Sales_Lag2", "Weekly_Sales_Lag4",
9
+ "Sales_Fuel_Interaction", "Sales_CPI_Interaction", "Sales_Unemployment_Interaction",
10
+ "Month", "Quarter", "Year", "Holiday_Impact"],
11
+ type="pandas"
12
+ ),
13
+ outputs="number",
14
+ title="Walmart Sales Prediction",
15
+ description="Enter the features to predict weekly sales."
16
+ )
17
+
18
+ iface.launch()