Spaces:
Runtime error
Runtime error
quantamentalfinance
commited on
Commit
•
678779d
1
Parent(s):
dcfeccf
Update app.py
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ def source_question_answer(query:str,vectorstore:Chroma=chroma_db,llm:HuggingFac
|
|
56 |
query = f"[INST]According to the earnings calls transcripts earlier, {query}[INST]"
|
57 |
|
58 |
full_response = qa_chain.run(input_documents=input_docs, question=query)
|
59 |
-
|
60 |
start = full_response.find('Helpful Answer:')
|
61 |
if start != -1:
|
62 |
response = full_response[start + len('Helpful Answer:'):]
|
|
|
56 |
query = f"[INST]According to the earnings calls transcripts earlier, {query}[INST]"
|
57 |
|
58 |
full_response = qa_chain.run(input_documents=input_docs, question=query)
|
59 |
+
print(type(full_response))
|
60 |
start = full_response.find('Helpful Answer:')
|
61 |
if start != -1:
|
62 |
response = full_response[start + len('Helpful Answer:'):]
|