Keltezaa commited on
Commit
adac35b
·
verified ·
1 Parent(s): 11460de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -58,8 +58,8 @@ MAX_SEED = 2**32 - 1
58
  pipe.flux_pipe_call_that_returns_an_iterable_of_images = flux_pipe_call_that_returns_an_iterable_of_images.__get__(pipe)
59
 
60
  def process_input(input_text):
61
- # Tokenize and truncate input
62
- inputs = clip_processor(text=input_text, return_tensors="pt", padding=True, truncation=True, max_length=77)
63
  return inputs
64
 
65
  # Example usage
 
58
  pipe.flux_pipe_call_that_returns_an_iterable_of_images = flux_pipe_call_that_returns_an_iterable_of_images.__get__(pipe)
59
 
60
  def process_input(input_text):
61
+ # Tokenize and truncate input increased from 77 to 4096 as suggested.
62
+ inputs = clip_processor(text=input_text, return_tensors="pt", padding=True, truncation=True, max_length=4096)
63
  return inputs
64
 
65
  # Example usage