teddyllm commited on
Commit
7f91d05
1 Parent(s): 9400147

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -5,8 +5,8 @@ import time
5
  import boto3
6
 
7
  from langchain_aws import BedrockLLM
8
- from langchain.embeddings import BedrockEmbeddings
9
- from langchain.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,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=True, share=False, show_api=False)
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()