Spaces:
Runtime error
Runtime error
Commit
·
29f96f7
1
Parent(s):
c5e63e3
Update app.py
Browse files
app.py
CHANGED
@@ -50,14 +50,14 @@ def user_query_recommend(query, price_rng):
|
|
50 |
interface = gr.Interface(
|
51 |
user_query_recommend,
|
52 |
inputs=[gr.inputs.Textbox(lines=5, label = "enter flavour profile"),
|
53 |
-
gr.inputs.Radio(choices = ["$0-$
|
54 |
outputs=gr.outputs.Dataframe(max_rows=3, overflow_row_behaviour="paginate", type="pandas", label="Scotch recommendations"),
|
55 |
title = "Scotch Recommendation",
|
56 |
description = "Looking for scotch recommendations and have some flavours in mind? \nGet recommendations at a preferred price range using semantic search :) ",
|
57 |
-
examples=[["very sweet with lemons and oranges and marmalades", "$0-$
|
58 |
-
["smoky peaty earthy and spicy","$
|
59 |
-
["salty and spicy with exotic fruits", "$
|
60 |
-
["fragrant nose with chocolate, toffee, pudding and caramel", "$
|
61 |
],
|
62 |
theme="grass",
|
63 |
)
|
|
|
50 |
interface = gr.Interface(
|
51 |
user_query_recommend,
|
52 |
inputs=[gr.inputs.Textbox(lines=5, label = "enter flavour profile"),
|
53 |
+
gr.inputs.Radio(choices = ["$0-$70", "$70-$150", "$150+"], default="$0-$70", type="value", label='Price range')],
|
54 |
outputs=gr.outputs.Dataframe(max_rows=3, overflow_row_behaviour="paginate", type="pandas", label="Scotch recommendations"),
|
55 |
title = "Scotch Recommendation",
|
56 |
description = "Looking for scotch recommendations and have some flavours in mind? \nGet recommendations at a preferred price range using semantic search :) ",
|
57 |
+
examples=[["very sweet with lemons and oranges and marmalades", "$0-$70"],
|
58 |
+
["smoky peaty earthy and spicy","$70-$150"],
|
59 |
+
["salty and spicy with exotic fruits", "$150+"],
|
60 |
+
["fragrant nose with chocolate, custard, toffee, pudding and caramel", "$70-$150"],
|
61 |
],
|
62 |
theme="grass",
|
63 |
)
|