Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, pipeline
|
|
9 |
# 'model': None
|
10 |
# },
|
11 |
# 'v2': {
|
12 |
-
# 'name':"milyiyo/paraphraser-german-mt5-
|
13 |
# 'tokenizer': None,
|
14 |
# 'model': None
|
15 |
# },
|
@@ -21,8 +21,8 @@ from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, pipeline
|
|
21 |
# versions['v2']['tokenizer'] = AutoTokenizer.from_pretrained(versions['v2']['name'])
|
22 |
# versions['v2']['model'] = AutoModelForSeq2SeqLM.from_pretrained(versions['v2']['name'])
|
23 |
|
24 |
-
tokenizer = AutoTokenizer.from_pretrained("milyiyo/paraphraser-german-mt5-small")
|
25 |
-
model = AutoModelForSeq2SeqLM.from_pretrained("milyiyo/paraphraser-german-mt5-small")
|
26 |
|
27 |
|
28 |
def generate_v1(inputs, count):
|
|
|
9 |
# 'model': None
|
10 |
# },
|
11 |
# 'v2': {
|
12 |
+
# 'name':"milyiyo/paraphraser-german-mt5-small-v2",
|
13 |
# 'tokenizer': None,
|
14 |
# 'model': None
|
15 |
# },
|
|
|
21 |
# versions['v2']['tokenizer'] = AutoTokenizer.from_pretrained(versions['v2']['name'])
|
22 |
# versions['v2']['model'] = AutoModelForSeq2SeqLM.from_pretrained(versions['v2']['name'])
|
23 |
|
24 |
+
tokenizer = AutoTokenizer.from_pretrained("milyiyo/paraphraser-german-mt5-small-v2")
|
25 |
+
model = AutoModelForSeq2SeqLM.from_pretrained("milyiyo/paraphraser-german-mt5-small-v2")
|
26 |
|
27 |
|
28 |
def generate_v1(inputs, count):
|