ranamhamoud commited on
Commit
28d8d0f
·
verified ·
1 Parent(s): d558cef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -46,8 +46,8 @@ if torch.cuda.is_available():
46
  tokenizer = AutoTokenizer.from_pretrained(model_id)
47
  tokenizer.pad_token = tokenizer.eos_token
48
 
49
- PASSWORD = os.environ.get("MONGODB_PASS")
50
- connect(host='mongodb+srv://ranamhammoud11:3kIYizC7uyM97ydJ@stories.zf5v52a.mongodb.net/')
51
 
52
  class Story(Document):
53
  message = StringField()
@@ -112,8 +112,7 @@ chat_interface = gr.ChatInterface(
112
  stop_btn=None,
113
  examples=[
114
  ["Can you explain briefly to me what is the Python programming language?"],
115
- ["Could you please provide an explanation about the concept of recursion?"],
116
- ["Tell me more about Stacks."]
117
  ],
118
  )
119
 
 
46
  tokenizer = AutoTokenizer.from_pretrained(model_id)
47
  tokenizer.pad_token = tokenizer.eos_token
48
 
49
+ PASSWORD = os.environ.get("MONGO_PASS")
50
+ connect(host = f"mongodb+srv://ranamhammoud11:{PASSWORD}@stories.zf5v52a.mongodb.net/")
51
 
52
  class Story(Document):
53
  message = StringField()
 
112
  stop_btn=None,
113
  examples=[
114
  ["Can you explain briefly to me what is the Python programming language?"],
115
+ ["Could you please provide an explanation about the concept of recursion?"]
 
116
  ],
117
  )
118