Spaces:
Runtime error
Runtime error
spanish
Browse files
app.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
2 |
import torch
|
3 |
|
4 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
5 |
-
model = AutoModelForCausalLM.from_pretrained("
|
6 |
|
7 |
def predict(input, history=[]):
|
8 |
# tokenize the new input sentence
|
|
|
1 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
2 |
import torch
|
3 |
|
4 |
+
tokenizer = AutoTokenizer.from_pretrained("ncoop57/DiGPTame-medium")
|
5 |
+
model = AutoModelForCausalLM.from_pretrained("ncoop57/DiGPTame-medium")
|
6 |
|
7 |
def predict(input, history=[]):
|
8 |
# tokenize the new input sentence
|