Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -888,47 +888,47 @@ def create_interface():
|
|
| 888 |
""", elem_classes="file-format-help")
|
| 889 |
|
| 890 |
# Analysis Tab
|
| 891 |
-
|
| 892 |
-
|
| 893 |
-
|
| 894 |
-
|
| 895 |
-
|
| 896 |
-
|
| 897 |
-
|
| 898 |
-
|
| 899 |
-
|
| 900 |
-
|
| 901 |
-
|
| 902 |
-
|
| 903 |
-
|
| 904 |
-
|
| 905 |
-
|
| 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():
|