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 |
|
|
@@ -317,7 +317,7 @@ with gr.Blocks() as demo:
|
|
| 317 |
gr.Markdown("**Provide the location to discover hotels and receive personalized recommendations!**")
|
| 318 |
|
| 319 |
initial_conv = initial_conversation()
|
| 320 |
-
chatbot = MultimodalChatbot(value=initial_conv, height=
|
| 321 |
|
| 322 |
with gr.Row():
|
| 323 |
place_input = gr.Textbox(label="Enter a place", placeholder="E.g., Paris, Tokyo, New York")
|
|
|
|
| 148 |
if df_found is None:
|
| 149 |
return pd.DataFrame()
|
| 150 |
|
| 151 |
+
df_found = df_found.head(2) # Only last 2 hotels, to save runtime of Hugging Face ZERO GPU
|
| 152 |
hotel_ids = df_found["hotel_id"].values.tolist()
|
| 153 |
filtered_df = df_hotels[df_hotels['hotel_id'].isin(hotel_ids)]
|
| 154 |
|
|
|
|
| 317 |
gr.Markdown("**Provide the location to discover hotels and receive personalized recommendations!**")
|
| 318 |
|
| 319 |
initial_conv = initial_conversation()
|
| 320 |
+
chatbot = MultimodalChatbot(value=initial_conv, height=600)
|
| 321 |
|
| 322 |
with gr.Row():
|
| 323 |
place_input = gr.Textbox(label="Enter a place", placeholder="E.g., Paris, Tokyo, New York")
|