Update app.py
Browse files
app.py
CHANGED
@@ -85,6 +85,13 @@ cart_column = gr.Column(
|
|
85 |
)
|
86 |
|
87 |
# Layout with two main columns: Left (Inventory) and Right (User Info + Cart)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
interface = gr.Interface(
|
89 |
fn=predict_return, # Function to process predictions
|
90 |
inputs=[
|
@@ -96,7 +103,6 @@ interface = gr.Interface(
|
|
96 |
cart_column, # Right side: Cart & Predictions
|
97 |
user_info_column, # Right side: User Info
|
98 |
],
|
99 |
-
layout="horizontal", # Organize in two main sections: Left and Right
|
100 |
live=True # Enable live interaction
|
101 |
)
|
102 |
|
|
|
85 |
)
|
86 |
|
87 |
# Layout with two main columns: Left (Inventory) and Right (User Info + Cart)
|
88 |
+
with gr.Row():
|
89 |
+
gr.Column([inventory_column]) # Left side: Inventory
|
90 |
+
with gr.Column():
|
91 |
+
gr.Column([user_info_column]) # Right side: User Info
|
92 |
+
gr.Column([cart_column]) # Right side: Cart & Predictions
|
93 |
+
|
94 |
+
# Gradio Interface
|
95 |
interface = gr.Interface(
|
96 |
fn=predict_return, # Function to process predictions
|
97 |
inputs=[
|
|
|
103 |
cart_column, # Right side: Cart & Predictions
|
104 |
user_info_column, # Right side: User Info
|
105 |
],
|
|
|
106 |
live=True # Enable live interaction
|
107 |
)
|
108 |
|