Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -81,7 +81,7 @@ def get_top_chunks(query, chunk_embeddings, text_chunks):
|
|
| 81 |
# Return the list of most relevant chunks
|
| 82 |
return top_chunks
|
| 83 |
|
| 84 |
-
#STEP 6 FROM
|
| 85 |
# Call the get_top_chunks function with the original query
|
| 86 |
# top_weather = get_top_chunks("How do you make banana bread?", chunk_embeddings_weather, cleaned_chunks_weather)
|
| 87 |
|
|
@@ -183,7 +183,7 @@ with gr.Blocks() as demo:
|
|
| 183 |
luggage_size,
|
| 184 |
food_prefs
|
| 185 |
],
|
| 186 |
-
outputs=[chat_box
|
| 187 |
)
|
| 188 |
|
| 189 |
demo.launch(debug=True)
|
|
|
|
| 81 |
# Return the list of most relevant chunks
|
| 82 |
return top_chunks
|
| 83 |
|
| 84 |
+
#STEP 6 FROM SEMANTIC SEARCH
|
| 85 |
# Call the get_top_chunks function with the original query
|
| 86 |
# top_weather = get_top_chunks("How do you make banana bread?", chunk_embeddings_weather, cleaned_chunks_weather)
|
| 87 |
|
|
|
|
| 183 |
luggage_size,
|
| 184 |
food_prefs
|
| 185 |
],
|
| 186 |
+
outputs=[chat_box]
|
| 187 |
)
|
| 188 |
|
| 189 |
demo.launch(debug=True)
|