Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,8 @@ import time
|
|
5 |
import boto3
|
6 |
|
7 |
from langchain_aws import BedrockLLM
|
8 |
-
from
|
9 |
-
from
|
10 |
from langchain_core.prompts import ChatPromptTemplate
|
11 |
from langchain_core.output_parsers import StrOutputParser
|
12 |
from langchain_core.runnables import RunnablePassthrough
|
@@ -68,7 +68,7 @@ chatbot = gr.Chatbot(value = [[None, initial_msg]])
|
|
68 |
demo = gr.ChatInterface(chat_gen, chatbot=chatbot).queue()
|
69 |
|
70 |
try:
|
71 |
-
demo.launch(debug=
|
72 |
demo.close()
|
73 |
except Exception as e:
|
74 |
demo.close()
|
|
|
5 |
import boto3
|
6 |
|
7 |
from langchain_aws import BedrockLLM
|
8 |
+
from langchain_community.embeddings import BedrockEmbeddings
|
9 |
+
from langchain_community.vectorstores import FAISS
|
10 |
from langchain_core.prompts import ChatPromptTemplate
|
11 |
from langchain_core.output_parsers import StrOutputParser
|
12 |
from langchain_core.runnables import RunnablePassthrough
|
|
|
68 |
demo = gr.ChatInterface(chat_gen, chatbot=chatbot).queue()
|
69 |
|
70 |
try:
|
71 |
+
demo.launch(debug=False, share=False, show_api=False)
|
72 |
demo.close()
|
73 |
except Exception as e:
|
74 |
demo.close()
|