Update app.py
Browse files
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=
|
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
|