Yaron Koresh commited on
Commit
07d7428
·
verified ·
1 Parent(s): 568c974

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -99,7 +99,7 @@ def Piper(_do,neg):
99
 
100
  @spaces.GPU(duration=25)
101
  def tok(txt):
102
- toks = pipe.prepare_inputs(txt)
103
  print(toks)
104
  return toks
105
 
 
99
 
100
  @spaces.GPU(duration=25)
101
  def tok(txt):
102
+ toks = pipe.tokenizer(txt)['input_ids']
103
  print(toks)
104
  return toks
105