Spaces:
Sleeping
Sleeping
gabriel lopez
commited on
Commit
•
2875b91
1
Parent(s):
40f8a3f
last touches
Browse files
app.py
CHANGED
@@ -18,8 +18,11 @@ ARTICLE = r"""<center>
|
|
18 |
For more please visit: <a href='https://sites.google.com/view/dr-gabriel-lopez/home'>My Page</a><br>
|
19 |
</center>"""
|
20 |
|
21 |
-
|
22 |
-
|
|
|
|
|
|
|
23 |
|
24 |
# interaction function
|
25 |
def chat_with_bot(user_input, chat_history_and_input=[]):
|
|
|
18 |
For more please visit: <a href='https://sites.google.com/view/dr-gabriel-lopez/home'>My Page</a><br>
|
19 |
</center>"""
|
20 |
|
21 |
+
# checkpoint = "ericzhou/DialoGPT-Medium-Rick_v2" #pytorch
|
22 |
+
# checkpoint = "epeicher/DialoGPT-medium-homer" #pytorch
|
23 |
+
checkpoint = "microsoft/DialoGPT-medium" #tf
|
24 |
+
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
|
25 |
+
model = TFAutoModelForCausalLM.from_pretrained(checkpoint)
|
26 |
|
27 |
# interaction function
|
28 |
def chat_with_bot(user_input, chat_history_and_input=[]):
|
core.py
DELETED
File without changes
|