Spaces:
Runtime error
Runtime error
Commit
·
fc825b8
1
Parent(s):
2f33609
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,7 +35,7 @@ def user_query_recommend(query, price_rng):
|
|
| 35 |
|
| 36 |
op=recommendations\
|
| 37 |
.groupby("name")\
|
| 38 |
-
.sim.nlargest(
|
| 39 |
.reset_index()\
|
| 40 |
[["name","sim"]]
|
| 41 |
|
|
@@ -63,7 +63,7 @@ interface = gr.Interface(
|
|
| 63 |
title = "Scotch Recommendation",
|
| 64 |
description = "Looking for scotch recommendations and have some flavours in mind? \nGet recommendations at a preferred price range using semantic search :) ",
|
| 65 |
examples=[["very sweet with lemons and oranges and marmalades", "$0-$70"],
|
| 66 |
-
["smoky peaty
|
| 67 |
["salty and spicy with exotic fruits", "$150+"],
|
| 68 |
["fragrant nose with chocolate, custard, toffee, pudding and caramel", "$70-$150"],
|
| 69 |
],
|
|
|
|
| 35 |
|
| 36 |
op=recommendations\
|
| 37 |
.groupby("name")\
|
| 38 |
+
.sim.nlargest(2)\
|
| 39 |
.reset_index()\
|
| 40 |
[["name","sim"]]
|
| 41 |
|
|
|
|
| 63 |
title = "Scotch Recommendation",
|
| 64 |
description = "Looking for scotch recommendations and have some flavours in mind? \nGet recommendations at a preferred price range using semantic search :) ",
|
| 65 |
examples=[["very sweet with lemons and oranges and marmalades", "$0-$70"],
|
| 66 |
+
["smoky peaty and wood fire","$70-$150"],
|
| 67 |
["salty and spicy with exotic fruits", "$150+"],
|
| 68 |
["fragrant nose with chocolate, custard, toffee, pudding and caramel", "$70-$150"],
|
| 69 |
],
|