Update app.py
Browse files
app.py
CHANGED
@@ -3,10 +3,12 @@ from transformers import AutoModelForCausalLM, AutoTokenizer,BlenderbotForCondit
|
|
3 |
import torch
|
4 |
|
5 |
|
6 |
-
|
|
|
|
|
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 |
|