Update app.py
Browse files
app.py
CHANGED
@@ -143,6 +143,7 @@ def search_hotel(place=None):
|
|
143 |
df_found = find_nearby(place)
|
144 |
if df_found is None:
|
145 |
return pd.DataFrame()
|
|
|
146 |
hotel_ids = df_found["hotel_id"].values.tolist()
|
147 |
filtered_df = df_hotels[df_hotels['hotel_id'].isin(hotel_ids)]
|
148 |
filtered_df['hotel_id'] = pd.Categorical(filtered_df['hotel_id'], categories=hotel_ids, ordered=True)
|
|
|
143 |
df_found = find_nearby(place)
|
144 |
if df_found is None:
|
145 |
return pd.DataFrame()
|
146 |
+
df_found=df_found.head(3)
|
147 |
hotel_ids = df_found["hotel_id"].values.tolist()
|
148 |
filtered_df = df_hotels[df_hotels['hotel_id'].isin(hotel_ids)]
|
149 |
filtered_df['hotel_id'] = pd.Categorical(filtered_df['hotel_id'], categories=hotel_ids, ordered=True)
|