gabriel lopez commited on
Commit
2875b91
1 Parent(s): 40f8a3f

last touches

Browse files
Files changed (2) hide show
  1. app.py +5 -2
  2. core.py +0 -0
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
- tokenizer = AutoTokenizer.from_pretrained("microsoft/DialoGPT-medium")
22
- model = TFAutoModelForCausalLM.from_pretrained("microsoft/DialoGPT-medium")
 
 
 
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