TwentyNine commited on
Commit
60a7c28
·
verified ·
1 Parent(s): 3a028ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(separator='\n'):
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