smjain commited on
Commit
9e350ba
·
1 Parent(s): b9146b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -3,10 +3,12 @@ from transformers import AutoModelForCausalLM, AutoTokenizer,BlenderbotForCondit
3
  import torch
4
 
5
 
6
- import torch
 
 
7
 
8
- chat_tkn = AutoTokenizer.from_pretrained("facebook/blenderbot-400M-distill")
9
- mdl = BlenderbotForConditionalGeneration.from_pretrained("facebook/blenderbot-400M-distill")
10
 
11
  def converse(user_input, chat_history=[]):
12
 
 
3
  import torch
4
 
5
 
6
+ chat_tkn = AutoTokenizer.from_pretrained("microsoft/DialoGPT-medium")
7
+ mdl = AutoModelForCausalLM.from_pretrained("microsoft/DialoGPT-medium")
8
+
9
 
10
+ #chat_tkn = AutoTokenizer.from_pretrained("facebook/blenderbot-400M-distill")
11
+ #mdl = BlenderbotForConditionalGeneration.from_pretrained("facebook/blenderbot-400M-distill")
12
 
13
  def converse(user_input, chat_history=[]):
14