Update app.py
Browse files
app.py
CHANGED
|
@@ -148,7 +148,7 @@ def search_hotel(place=None):
|
|
| 148 |
if df_found is None:
|
| 149 |
return pd.DataFrame()
|
| 150 |
|
| 151 |
-
df_found = df_found.head(
|
| 152 |
hotel_ids = df_found["hotel_id"].values.tolist()
|
| 153 |
filtered_df = df_hotels[df_hotels['hotel_id'].isin(hotel_ids)]
|
| 154 |
|
|
|
|
| 148 |
if df_found is None:
|
| 149 |
return pd.DataFrame()
|
| 150 |
|
| 151 |
+
df_found = df_found.head(5) # Only last 5 hotels, to save runtime.
|
| 152 |
hotel_ids = df_found["hotel_id"].values.tolist()
|
| 153 |
filtered_df = df_hotels[df_hotels['hotel_id'].isin(hotel_ids)]
|
| 154 |
|