adhinojosa commited on
Commit
07c2c7d
1 Parent(s): 4952929

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -1,11 +1,13 @@
1
- from model import model
 
2
  import streamlit as st
3
 
4
 
5
  text= st.text_area("Pregúntale a Don Simón")
6
 
7
  if text:
8
- answer = model(text, max_new_tokens=25)
 
9
  if answer:
10
  st.write(answer)
11
 
 
1
+ #from model import model
2
+ from vectorstore import similarity_search
3
  import streamlit as st
4
 
5
 
6
  text= st.text_area("Pregúntale a Don Simón")
7
 
8
  if text:
9
+ answer = similarity_search(text,5)
10
+ #answer = model(text,max_new_tokens=25)
11
  if answer:
12
  st.write(answer)
13