AdityaRatan commited on
Commit
919b41c
Β·
verified Β·
1 Parent(s): fdaf769

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +39 -39
app.py CHANGED
@@ -888,47 +888,47 @@ def create_interface():
888
  """, elem_classes="file-format-help")
889
 
890
  # Analysis Tab
891
- with gr.Tab("πŸ” Analysis", elem_classes="tab-content"):
892
- with gr.Row():
893
- gr.Markdown("### Select Analysis Types")
894
-
895
- with gr.Row():
896
- analysis_options = gr.CheckboxGroup(
897
- choices=[
898
- "πŸ“ˆ Demand Forecasting",
899
- "⚠️ Risk Assessment",
900
- "πŸ“¦ Inventory Optimization",
901
- "🀝 Supplier Performance",
902
- "🌿 Sustainability Analysis"
903
- ],
904
- label="Choose analyses to perform",
905
- value=[] # Initialize with empty selection
906
- )
907
-
908
-
909
- analyze_button = gr.Button(
910
- "πŸš€ Run Analysis",
911
- variant="primary",
912
- elem_classes="action-button"
913
- )
914
-
915
- with gr.Row():
916
- with gr.Column(scale=2):
917
- analysis_output = gr.Textbox(
918
- label="Analysis Results",
919
- elem_classes="result-box"
920
- )
921
- with gr.Column(scale=3):
922
- plot_output = gr.Plot(
923
- label="Visualization",
924
- elem_classes="chart-container"
925
- )
926
-
927
- raw_output = gr.Textbox(
928
- label="Processing Status",
929
- elem_classes="status-box"
930
  )
931
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
932
  # Freight Cost Prediction Tab
933
  with gr.Tab("πŸ’° Cost Prediction", elem_classes="tab-content"):
934
  with gr.Row():
 
888
  """, elem_classes="file-format-help")
889
 
890
  # Analysis Tab
891
+ with gr.Tab("πŸ” Analysis", elem_classes="tab-content"):
892
+ with gr.Row():
893
+ gr.Markdown("### Select Analysis Types")
894
+
895
+ with gr.Row():
896
+ analysis_options = gr.CheckboxGroup(
897
+ choices=[
898
+ "πŸ“ˆ Demand Forecasting",
899
+ "⚠️ Risk Assessment",
900
+ "πŸ“¦ Inventory Optimization",
901
+ "🀝 Supplier Performance",
902
+ "🌿 Sustainability Analysis"
903
+ ],
904
+ label="Choose analyses to perform",
905
+ value=[] # Initialize with empty selection
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
906
  )
907
 
908
+
909
+ analyze_button = gr.Button(
910
+ "πŸš€ Run Analysis",
911
+ variant="primary",
912
+ elem_classes="action-button"
913
+ )
914
+
915
+ with gr.Row():
916
+ with gr.Column(scale=2):
917
+ analysis_output = gr.Textbox(
918
+ label="Analysis Results",
919
+ elem_classes="result-box"
920
+ )
921
+ with gr.Column(scale=3):
922
+ plot_output = gr.Plot(
923
+ label="Visualization",
924
+ elem_classes="chart-container"
925
+ )
926
+
927
+ raw_output = gr.Textbox(
928
+ label="Processing Status",
929
+ elem_classes="status-box"
930
+ )
931
+
932
  # Freight Cost Prediction Tab
933
  with gr.Tab("πŸ’° Cost Prediction", elem_classes="tab-content"):
934
  with gr.Row():