Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,8 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
2 |
import torch
|
3 |
|
4 |
#set up the model
|
5 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
6 |
-
model = AutoModelForCausalLM.from_pretrained("
|
7 |
|
8 |
#Defining a predict function
|
9 |
def predict(input, history=[]):
|
|
|
2 |
import torch
|
3 |
|
4 |
#set up the model
|
5 |
+
tokenizer = AutoTokenizer.from_pretrained("microsoft/DialoGPT-large")
|
6 |
+
model = AutoModelForCausalLM.from_pretrained("microsoft/DialoGPT-large")
|
7 |
|
8 |
#Defining a predict function
|
9 |
def predict(input, history=[]):
|