PrabakaranC commited on
Commit
7f91778
·
verified ·
1 Parent(s): 5f1d89a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -2
app.py CHANGED
@@ -60,9 +60,19 @@ docEmbedding = torch.Tensor(np.load("./prodBigDollEmbeddings.npy"))
60
 
61
 
62
 
63
-
64
  with st.form("my_form"):
65
- query_input = st.text_input("query your product")
 
 
 
 
 
 
 
 
 
 
66
  submitted = st.form_submit_button("Submit")
67
  Matry_dim = st.slider('Matryoshka Dimension', 64, 768, 64)
68
 
 
60
 
61
 
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',
69
+ 'Set Content: 1 photo frameColour: Black and whiteFrame Pattern: SolidShape: SquareMaterial: Acrylic',
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")
77
  Matry_dim = st.slider('Matryoshka Dimension', 64, 768, 64)
78