Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -126,12 +126,12 @@ from transformers import AutoModelForCausalLM, AutoTokenizer,BlenderbotForCondit
|
|
126 |
import torch
|
127 |
|
128 |
|
129 |
-
|
130 |
-
|
131 |
|
132 |
|
133 |
-
chat_tkn = AutoTokenizer.from_pretrained("facebook/blenderbot-400M-distill")
|
134 |
-
mdl = BlenderbotForConditionalGeneration.from_pretrained("facebook/blenderbot-400M-distill")
|
135 |
|
136 |
def converse(user_input, chat_history=[]):
|
137 |
|
|
|
126 |
import torch
|
127 |
|
128 |
|
129 |
+
chat_tkn = AutoTokenizer.from_pretrained("microsoft/DialoGPT-medium")
|
130 |
+
mdl = AutoModelForCausalLM.from_pretrained("microsoft/DialoGPT-medium")
|
131 |
|
132 |
|
133 |
+
#chat_tkn = AutoTokenizer.from_pretrained("facebook/blenderbot-400M-distill")
|
134 |
+
#mdl = BlenderbotForConditionalGeneration.from_pretrained("facebook/blenderbot-400M-distill")
|
135 |
|
136 |
def converse(user_input, chat_history=[]):
|
137 |
|