oliverdixon commited on
Commit
11b4bc8
1 Parent(s): e30ab4c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -188,17 +188,10 @@ def vector_search(question):
188
  def combined_answer(text1, text2, text3, source, question):
189
 
190
  text_answer2 = text2['answer']
191
- text = '''Combine the following information to answer this question {}. \n
192
- Here are the text sources: \n
193
- Text1 {} \n
194
- Text2 {} \n
195
- Text3 {} \n
196
- Combined, summarized text:'''.format(question,text1,text_answer2,text3)
197
- result = llm.predict(text)
198
  books_ref = source
199
  web_ref = text2['sources']
200
 
201
- return result, books_ref, web_ref
202
 
203
  with st.form("my_form"):
204
  text = st.text_area("Enter text:", "Type question here")
 
188
  def combined_answer(text1, text2, text3, source, question):
189
 
190
  text_answer2 = text2['answer']
 
 
 
 
 
 
 
191
  books_ref = source
192
  web_ref = text2['sources']
193
 
194
+ return text1, books_ref, web_ref
195
 
196
  with st.form("my_form"):
197
  text = st.text_area("Enter text:", "Type question here")