Spaces:
Sleeping
Sleeping
updated the format of the side bar
Browse files
app.py
CHANGED
|
@@ -164,6 +164,7 @@ with gr.Blocks() as demo:
|
|
| 164 |
with gr.Row():
|
| 165 |
# βββ left column: your controls βββ
|
| 166 |
with gr.Column(scale=1):
|
|
|
|
| 167 |
use_spanish = gr.Checkbox(label="Use Spanish", value=False)
|
| 168 |
chatbot_mode = gr.Radio(
|
| 169 |
choices=["Packing", "Food/Attractions"],
|
|
@@ -174,14 +175,13 @@ with gr.Blocks() as demo:
|
|
| 174 |
choices=["San Francisco","Los Angeles"],
|
| 175 |
label="Where are you going?"
|
| 176 |
)
|
| 177 |
-
gr.Markdown("### Trip
|
| 178 |
trip_length = gr.Number(label="How long is your trip?", precision=0)
|
| 179 |
trip_unit = gr.Radio(
|
| 180 |
choices=["days", "weeks", "months"],
|
| 181 |
label="Trip length unit"
|
| 182 |
)
|
| 183 |
|
| 184 |
-
|
| 185 |
gr.Markdown("### Luggage")
|
| 186 |
luggage_types = gr.CheckboxGroup(
|
| 187 |
choices=["Carry-on","Checked"],
|
|
@@ -191,10 +191,10 @@ with gr.Blocks() as demo:
|
|
| 191 |
minimum=10, maximum=100, step=10, value=20,
|
| 192 |
label="What is the size of you luggage (liters)?"
|
| 193 |
)
|
| 194 |
-
gr.Markdown("### Food
|
| 195 |
food_prefs = gr.CheckboxGroup(
|
| 196 |
-
choices=["Italian","Thai","Mexican","Japanese"],
|
| 197 |
-
label=
|
| 198 |
)
|
| 199 |
|
| 200 |
with gr.Column(scale=3):
|
|
|
|
| 164 |
with gr.Row():
|
| 165 |
# βββ left column: your controls βββ
|
| 166 |
with gr.Column(scale=1):
|
| 167 |
+
gr.Markdown("### Chatbot Settings")
|
| 168 |
use_spanish = gr.Checkbox(label="Use Spanish", value=False)
|
| 169 |
chatbot_mode = gr.Radio(
|
| 170 |
choices=["Packing", "Food/Attractions"],
|
|
|
|
| 175 |
choices=["San Francisco","Los Angeles"],
|
| 176 |
label="Where are you going?"
|
| 177 |
)
|
| 178 |
+
gr.Markdown("### Trip Length")
|
| 179 |
trip_length = gr.Number(label="How long is your trip?", precision=0)
|
| 180 |
trip_unit = gr.Radio(
|
| 181 |
choices=["days", "weeks", "months"],
|
| 182 |
label="Trip length unit"
|
| 183 |
)
|
| 184 |
|
|
|
|
| 185 |
gr.Markdown("### Luggage")
|
| 186 |
luggage_types = gr.CheckboxGroup(
|
| 187 |
choices=["Carry-on","Checked"],
|
|
|
|
| 191 |
minimum=10, maximum=100, step=10, value=20,
|
| 192 |
label="What is the size of you luggage (liters)?"
|
| 193 |
)
|
| 194 |
+
gr.Markdown("### Food")
|
| 195 |
food_prefs = gr.CheckboxGroup(
|
| 196 |
+
choices=["Italian","Thai","Mexican","Japanese", "Seafood", "Asian Fusion", "Korean", "Brunch", "Bakery", "Mexican", "Italian", "Vegan", "Chinese", "Coffee", "Boba", "Fast-Food", "Dessert", "Greek", "Indian"],
|
| 197 |
+
label="What are you food preferences?"
|
| 198 |
)
|
| 199 |
|
| 200 |
with gr.Column(scale=3):
|