Tharindu1527 commited on
Commit
9580530
·
2 Parent(s): 0ae26994bb1576

adding css

Browse files
Files changed (1) hide show
  1. Chatbot.py +2 -2
Chatbot.py CHANGED
@@ -44,7 +44,7 @@ class Model:
44
  max_tokens=None,
45
  timeout=None,
46
  max_retries=2,
47
- google_api_key = "GOOGLE_API_KEY"
48
  )
49
 
50
  # Define Prompt Template
@@ -138,7 +138,7 @@ class ChatInterface:
138
  def get_chat_history(self, user_id):
139
  return MongoDBChatMessageHistory(
140
  session_id=user_id,
141
- connection_string="Mongo_URI",
142
  database_name="Chatbot",
143
  collection_name="chat_histories",
144
  )
 
44
  max_tokens=None,
45
  timeout=None,
46
  max_retries=2,
47
+ google_api_key = os.getenv("GOOGLE_API_KEY")
48
  )
49
 
50
  # Define Prompt Template
 
138
  def get_chat_history(self, user_id):
139
  return MongoDBChatMessageHistory(
140
  session_id=user_id,
141
+ connection_string= os.getenv("Mongo_URI"),
142
  database_name="Chatbot",
143
  collection_name="chat_histories",
144
  )