linkstatic1 commited on
Commit
5d3691f
·
verified ·
1 Parent(s): 486cc90

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -15
app.py CHANGED
@@ -101,7 +101,21 @@ with gr.Blocks() as demo:
101
  gr.Markdown("Predict future performance and explore historical data patterns.")
102
 
103
  with gr.Tabs():
104
- # TAB 1: PREDICTOR
 
 
 
 
 
 
 
 
 
 
 
 
 
 
105
  with gr.TabItem("🔮 Sales Forecast"):
106
  with gr.Row():
107
  with gr.Column():
@@ -129,20 +143,6 @@ with gr.Blocks() as demo:
129
  outputs=[out_sales, out_rev, out_plot]
130
  )
131
 
132
- # TAB 2: DATA EXPLORATION
133
- with gr.TabItem("📊 EDA Dashboard"):
134
- gr.Markdown(get_business_insights())
135
-
136
- with gr.Row():
137
- gr.Plot(plot_brand_revenue())
138
- gr.Plot(plot_promo_lift())
139
- with gr.Row():
140
- gr.Plot(plot_sales_trend())
141
- gr.Plot(plot_region_sales())
142
-
143
- with gr.Accordion("View Raw Data Snippet", open=False):
144
- gr.DataFrame(df.sample(10))
145
-
146
  # --- 5. LAUNCH ---
147
  if __name__ == "__main__":
148
  demo.launch(theme=gr.themes.Soft())
 
101
  gr.Markdown("Predict future performance and explore historical data patterns.")
102
 
103
  with gr.Tabs():
104
+ # TAB 1: DATA EXPLORATION
105
+ with gr.TabItem("📊 EDA Dashboard"):
106
+ gr.Markdown(get_business_insights())
107
+
108
+ with gr.Row():
109
+ gr.Plot(plot_brand_revenue())
110
+ gr.Plot(plot_promo_lift())
111
+ with gr.Row():
112
+ gr.Plot(plot_sales_trend())
113
+ gr.Plot(plot_region_sales())
114
+
115
+ with gr.Accordion("View Raw Data Snippet", open=False):
116
+ gr.DataFrame(df.sample(10))
117
+
118
+ # TAB 2: PREDICTOR
119
  with gr.TabItem("🔮 Sales Forecast"):
120
  with gr.Row():
121
  with gr.Column():
 
143
  outputs=[out_sales, out_rev, out_plot]
144
  )
145
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
146
  # --- 5. LAUNCH ---
147
  if __name__ == "__main__":
148
  demo.launch(theme=gr.themes.Soft())