Spaces:
Runtime error
Runtime error
lionelgarnier
commited on
Commit
·
461fc5b
1
Parent(s):
cb1522f
enable model preloading at startup
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ login(token=hf_token)
|
|
26 |
# Global constants and default values
|
27 |
MAX_SEED = np.iinfo(np.int32).max
|
28 |
MAX_IMAGE_SIZE = 2048
|
29 |
-
PRELOAD_MODELS =
|
30 |
|
31 |
# Default system prompt for text generation
|
32 |
DEFAULT_SYSTEM_PROMPT = """You are a product designer with strong knowledge in text-to-image generation. You will receive a product request in the form of a brief description, and your mission will be to imagine a new product design that meets this need.
|
|
|
26 |
# Global constants and default values
|
27 |
MAX_SEED = np.iinfo(np.int32).max
|
28 |
MAX_IMAGE_SIZE = 2048
|
29 |
+
PRELOAD_MODELS = True # Set to True to preload models at startup
|
30 |
|
31 |
# Default system prompt for text generation
|
32 |
DEFAULT_SYSTEM_PROMPT = """You are a product designer with strong knowledge in text-to-image generation. You will receive a product request in the form of a brief description, and your mission will be to imagine a new product design that meets this need.
|