Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
kiyer
commited on
Commit
·
b6539c5
1
Parent(s):
d1fa2c0
bugfixes
Browse files- app.py +4 -1
- requirements.txt +1 -0
app.py
CHANGED
|
@@ -698,7 +698,10 @@ def make_rag_qa_answer(query, top_k = 10):
|
|
| 698 |
retriever = vectorstore.as_retriever(search_type="similarity", search_kwargs={"k": 6})
|
| 699 |
|
| 700 |
for i in range(len(absts)):
|
| 701 |
-
|
|
|
|
|
|
|
|
|
|
| 702 |
|
| 703 |
if st.session_state.question_type == 'Bibliometric':
|
| 704 |
template = bibliometric_prompt
|
|
|
|
| 698 |
retriever = vectorstore.as_retriever(search_type="similarity", search_kwargs={"k": 6})
|
| 699 |
|
| 700 |
for i in range(len(absts)):
|
| 701 |
+
try:
|
| 702 |
+
os.remove("absts/"+fhdrs[i]+".txt")
|
| 703 |
+
except:
|
| 704 |
+
print("absts/"+fhdrs[i]+".txt not found")
|
| 705 |
|
| 706 |
if st.session_state.question_type == 'Bibliometric':
|
| 707 |
template = bibliometric_prompt
|
requirements.txt
CHANGED
|
@@ -15,6 +15,7 @@ pydantic
|
|
| 15 |
feedparser
|
| 16 |
tiktoken
|
| 17 |
chromadb
|
|
|
|
| 18 |
streamlit-extras
|
| 19 |
nltk
|
| 20 |
cohere
|
|
|
|
| 15 |
feedparser
|
| 16 |
tiktoken
|
| 17 |
chromadb
|
| 18 |
+
streamlit==1.37.0
|
| 19 |
streamlit-extras
|
| 20 |
nltk
|
| 21 |
cohere
|