Norgan97 commited on
Commit
942def5
1 Parent(s): 46522f1

design changes

Browse files
Dataset/embeddingsbooks.txt CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:53781aa6a45e47ac88bdc1dfa593f09d835d51c3d9eb366bc01ab89dea13559c
3
- size 27330999
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f0d215389841d91e403e0d2052998369eefc5546e5597dbcb2b85f126679054c
3
+ size 26199019
Dataset/faissbooks.index CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:50f0fa817d301875a9d3429facbdb636a3169af3c63840466dbd3a1f8b8b57ec
3
- size 8950701
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fbeed94e0f2dbbb393b7f019d0174e2dc7861f8f2a2a3091a549b31f8bff88d7
3
+ size 8580045
Dataset/parcedbooks.csv CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c10804c8d16746ba88a522298cef960f6886359f1445b75b1562102666f21e6e
3
- size 11253239
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4d3abf12900ffd5ac0b3c8f503075930830c430fc9039416ce8d7c09589f900a
3
+ size 10833072
app.py CHANGED
@@ -38,10 +38,13 @@ def embed_bert_cls(text, model, tokenizer):
38
  return embeddings[0].cpu().numpy()
39
 
40
 
41
- text = st.text_input('Введите ваше предпочтение для рекомендации')
42
 
43
- button = st.button('Отправить запрос')
44
- num = st.number_input('Укажите количество книг для рекомендации', step=1, value=1)
 
 
 
45
 
46
 
47
  if text and button:
 
38
  return embeddings[0].cpu().numpy()
39
 
40
 
41
+ col3, col4 = st.columns([5,1])
42
 
43
+ with col3:
44
+ text = st.text_input('Введите ваше предпочтение для рекомендации')
45
+ with col4:
46
+ num = st.number_input('Укажите количество книг для рекомендации', step=1, value=1)
47
+ button = st.button('Отправить запрос')
48
 
49
 
50
  if text and button:
pages/recipes.py CHANGED
@@ -37,11 +37,13 @@ def embed_bert_cls(text, model, tokenizer):
37
  embeddings = torch.nn.functional.normalize(embeddings)
38
  return embeddings[0].cpu().numpy()
39
 
 
40
 
41
- text = st.text_input('Введите ваше предпочтение для рекомендации')
42
-
43
- button = st.button('Отправить запрос')
44
- num = st.number_input('Укажите количество блюд для рекомендации', step=1, value=1)
 
45
 
46
 
47
  if text and button:
 
37
  embeddings = torch.nn.functional.normalize(embeddings)
38
  return embeddings[0].cpu().numpy()
39
 
40
+ col3, col4 = st.columns([5,1])
41
 
42
+ with col3:
43
+ text = st.text_input('Введите ваше предпочтение для рекомендации')
44
+ with col4:
45
+ num = st.number_input('Укажите количество блюд для рекомендации', step=1, value=1)
46
+ button = st.button('Отправить запрос')
47
 
48
 
49
  if text and button: