TwentyNine
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ model = AutoModelForSeq2SeqLM.from_pretrained("TwentyNine/byt5-ain-kana-latin-co
|
|
7 |
def transcribe(input_str):
|
8 |
output_str = ''
|
9 |
|
10 |
-
for input in input_str.split(
|
11 |
input_enc = tokenizer.encode(input_str.strip(), return_tensors='pt')
|
12 |
output_enc = model.generate(input_enc, max_length=256)
|
13 |
|
|
|
7 |
def transcribe(input_str):
|
8 |
output_str = ''
|
9 |
|
10 |
+
for input in input_str.split('\n'):
|
11 |
input_enc = tokenizer.encode(input_str.strip(), return_tensors='pt')
|
12 |
output_enc = model.generate(input_enc, max_length=256)
|
13 |
|