Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ tokenizer = AutoTokenizer.from_pretrained("claudiatang/flan-t5-base-eng-hwp")
|
|
6 |
model = AutoModelForSeq2SeqLM.from_pretrained("claudiatang/flan-t5-base-eng-hwp")
|
7 |
|
8 |
def translate_to_hawaiian(text):
|
9 |
-
# Add language direction instruction
|
10 |
input_text = f"translate English to Hawaiian Pidgin: {text}"
|
11 |
|
12 |
# Encoding the input text for the model
|
|
|
6 |
model = AutoModelForSeq2SeqLM.from_pretrained("claudiatang/flan-t5-base-eng-hwp")
|
7 |
|
8 |
def translate_to_hawaiian(text):
|
9 |
+
# Add language direction instruction
|
10 |
input_text = f"translate English to Hawaiian Pidgin: {text}"
|
11 |
|
12 |
# Encoding the input text for the model
|