Spaces:
Build error
Build error
Update variables.py
Browse files- variables.py +2 -2
variables.py
CHANGED
@@ -72,7 +72,7 @@ def process_tweets(df,df_users):
|
|
72 |
return df_tweets
|
73 |
|
74 |
@st.experimental_singleton(suppress_st_warning=True)
|
75 |
-
def embed_tweets(file,model,query,
|
76 |
'''Process file with latest tweets'''
|
77 |
|
78 |
# Split tweets int chunks
|
@@ -90,7 +90,7 @@ def embed_tweets(file,model,query,prompt):
|
|
90 |
|
91 |
docsearch = FAISS.from_texts(texts, emb)
|
92 |
|
93 |
-
chain_type_kwargs = {"prompt":
|
94 |
chain = VectorDBQA.from_chain_type(
|
95 |
ChatOpenAI(temperature=0),
|
96 |
chain_type="stuff",
|
|
|
72 |
return df_tweets
|
73 |
|
74 |
@st.experimental_singleton(suppress_st_warning=True)
|
75 |
+
def embed_tweets(file,model,query,_prompt):
|
76 |
'''Process file with latest tweets'''
|
77 |
|
78 |
# Split tweets int chunks
|
|
|
90 |
|
91 |
docsearch = FAISS.from_texts(texts, emb)
|
92 |
|
93 |
+
chain_type_kwargs = {"prompt": _prompt}
|
94 |
chain = VectorDBQA.from_chain_type(
|
95 |
ChatOpenAI(temperature=0),
|
96 |
chain_type="stuff",
|