Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from transformers import pipeline
|
|
3 |
from transformers import pipeline
|
4 |
import re
|
5 |
|
6 |
-
dante = pipeline('text-generation',model='
|
7 |
|
8 |
def grammatical_cleaning(generated: str) -> str:
|
9 |
generated = re.sub("\.[^\s]",". ", generated)
|
|
|
3 |
from transformers import pipeline
|
4 |
import re
|
5 |
|
6 |
+
dante = pipeline('text-generation',model='.', tokenizer='GroNLP/gpt2-small-italian-embeddings')
|
7 |
|
8 |
def grammatical_cleaning(generated: str) -> str:
|
9 |
generated = re.sub("\.[^\s]",". ", generated)
|