Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,6 @@
|
|
| 2 |
##
|
| 3 |
#####################################
|
| 4 |
|
| 5 |
-
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
|
| 6 |
from langchain_community.llms import HuggingFaceHub
|
| 7 |
|
| 8 |
|
|
@@ -134,7 +133,7 @@ chat_history = [] # Set your chat history here
|
|
| 134 |
# Define your function here
|
| 135 |
def get_response(user_input):
|
| 136 |
|
| 137 |
-
vs =
|
| 138 |
chat_history =[]
|
| 139 |
retriever_chain = get_context_retriever_chain(vs)
|
| 140 |
conversation_rag_chain = get_conversational_rag_chain(retriever_chain)
|
|
@@ -297,3 +296,4 @@ async def startup():
|
|
| 297 |
# Assuming visited_urls is a list of URLs
|
| 298 |
for url in links:
|
| 299 |
vs = get_vectorstore_from_url(url)
|
|
|
|
|
|
| 2 |
##
|
| 3 |
#####################################
|
| 4 |
|
|
|
|
| 5 |
from langchain_community.llms import HuggingFaceHub
|
| 6 |
|
| 7 |
|
|
|
|
| 133 |
# Define your function here
|
| 134 |
def get_response(user_input):
|
| 135 |
|
| 136 |
+
vs = get_vectorstore()
|
| 137 |
chat_history =[]
|
| 138 |
retriever_chain = get_context_retriever_chain(vs)
|
| 139 |
conversation_rag_chain = get_conversational_rag_chain(retriever_chain)
|
|
|
|
| 296 |
# Assuming visited_urls is a list of URLs
|
| 297 |
for url in links:
|
| 298 |
vs = get_vectorstore_from_url(url)
|
| 299 |
+
#load_model()
|