Rohan Kumar Singh commited on
Commit
2607e34
·
1 Parent(s): f009f84

added private key

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -94,6 +94,7 @@ def generate_response(question):
94
  return "".join(preds)
95
 
96
  import uuid
 
97
  import streamlit as st
98
  from streamlit_chat import message
99
 
@@ -101,7 +102,8 @@ from streamlit_chat import message
101
  from pymongo.mongo_client import MongoClient
102
  from pymongo.server_api import ServerApi
103
 
104
- uri = "mongodb+srv://rohank587:zaqxswcdevfr@rkcluster.e3fpzja.mongodb.net/?retryWrites=true&w=majority"
 
105
 
106
  # Create a new client and connect to the server
107
  client = MongoClient(uri, server_api=ServerApi('1'))
 
94
  return "".join(preds)
95
 
96
  import uuid
97
+ import os
98
  import streamlit as st
99
  from streamlit_chat import message
100
 
 
102
  from pymongo.mongo_client import MongoClient
103
  from pymongo.server_api import ServerApi
104
 
105
+ password=os.getenv("mongo_pass")
106
+ uri = "mongodb+srv://rohank587:"+password+"@rkcluster.e3fpzja.mongodb.net/?retryWrites=true&w=majority"
107
 
108
  # Create a new client and connect to the server
109
  client = MongoClient(uri, server_api=ServerApi('1'))