Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,8 +20,9 @@ inputs = {}
|
|
| 20 |
unique_brands = df['brand'].unique()
|
| 21 |
selected_brand = st.selectbox("Выберите бренд авто", unique_brands)
|
| 22 |
|
| 23 |
-
# Выбор модели
|
| 24 |
-
|
|
|
|
| 25 |
|
| 26 |
inputs['brand'] = selected_brand
|
| 27 |
inputs['model'] = selected_model
|
|
|
|
| 20 |
unique_brands = df['brand'].unique()
|
| 21 |
selected_brand = st.selectbox("Выберите бренд авто", unique_brands)
|
| 22 |
|
| 23 |
+
# Выбор модели в зависимости от бренда
|
| 24 |
+
selected_model_options = df[df['brand'] == selected_brand]['model'].unique()
|
| 25 |
+
selected_model = st.selectbox("Выберите модель авто", selected_model_options)
|
| 26 |
|
| 27 |
inputs['brand'] = selected_brand
|
| 28 |
inputs['model'] = selected_model
|