Spaces:
Paused
Paused
Update app.py
Browse files
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("
|
50 |
-
connect(host=
|
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 |
|