Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,9 @@ from transformers import pipeline
|
|
3 |
|
4 |
#model = AutoModelForSeq2SeqLM.from_pretrained("t5-base")
|
5 |
#tokenizer = AutoTokenizer.from_pretrained("t5-base")
|
6 |
-
classifier = pipeline('text-generation', model=
|
|
|
|
|
7 |
def main():
|
8 |
st.title("Text translation")
|
9 |
|
|
|
3 |
|
4 |
#model = AutoModelForSeq2SeqLM.from_pretrained("t5-base")
|
5 |
#tokenizer = AutoTokenizer.from_pretrained("t5-base")
|
6 |
+
classifier = pipeline('text-generation', model="dbmdz/german-gpt2",
|
7 |
+
tokenizer="dbmdz/german-gpt2")
|
8 |
+
|
9 |
def main():
|
10 |
st.title("Text translation")
|
11 |
|