Spaces:
Sleeping
Sleeping
PrabakaranC
commited on
Commit
•
a6d5b0f
1
Parent(s):
7f91778
Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,7 @@ docEmbedding = torch.Tensor(np.load("./prodBigDollEmbeddings.npy"))
|
|
62 |
|
63 |
toggle = st.toggle('sample queries')
|
64 |
with st.form("my_form"):
|
65 |
-
|
66 |
question_input = st.selectbox('select a query:',
|
67 |
('Pack of two assorted boxers, has two pockets, an elasticated waistbandDisclaimer: The final product delivered might vary in colour and prints from the display here.',
|
68 |
'Beige self design shoulder bag, has a zip closure1 main compartment, 3 inner pocketsTwo Handles',
|
@@ -70,7 +70,7 @@ with st.form("my_form"):
|
|
70 |
'A pair of dark grey solid boxers, has a slip-on closure with an elasticated waistband and drawstring, two pocket',
|
71 |
'Red & Black solid sweatshirt, has a hood, two pockets, long sleeves, zip closure, straight hem'))
|
72 |
|
73 |
-
|
74 |
question_input = st.text_input("")
|
75 |
|
76 |
submitted = st.form_submit_button("Submit")
|
|
|
62 |
|
63 |
toggle = st.toggle('sample queries')
|
64 |
with st.form("my_form"):
|
65 |
+
if toggle:
|
66 |
question_input = st.selectbox('select a query:',
|
67 |
('Pack of two assorted boxers, has two pockets, an elasticated waistbandDisclaimer: The final product delivered might vary in colour and prints from the display here.',
|
68 |
'Beige self design shoulder bag, has a zip closure1 main compartment, 3 inner pocketsTwo Handles',
|
|
|
70 |
'A pair of dark grey solid boxers, has a slip-on closure with an elasticated waistband and drawstring, two pocket',
|
71 |
'Red & Black solid sweatshirt, has a hood, two pockets, long sleeves, zip closure, straight hem'))
|
72 |
|
73 |
+
else:
|
74 |
question_input = st.text_input("")
|
75 |
|
76 |
submitted = st.form_submit_button("Submit")
|