Yaron Koresh commited on
Commit
040b0d7
·
verified ·
1 Parent(s): 34f0a8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -80,9 +80,8 @@ def generate_random_string(length):
80
  @spaces.GPU(duration=45)
81
  def Piper(_do,_dont):
82
  try:
83
- params = pipe._preprocess_params
84
- neg = pipe.preprocess(_dont, **params).input_ids
85
-
86
  retu = pipe(
87
  _do,
88
  neg_prompt_ids=neg,
 
80
  @spaces.GPU(duration=45)
81
  def Piper(_do,_dont):
82
  try:
83
+ neg = pipe.tokenizer(_dont)['input_ids']
84
+ print(neg)
 
85
  retu = pipe(
86
  _do,
87
  neg_prompt_ids=neg,