Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ from PIL import Image, ImageEnhance, ImageFilter
|
|
10 |
# --- Environment Configuration ---
|
11 |
GEMINI_KEY = os.environ.get("GEMINI_KEY", "")
|
12 |
DEFAULT_PORT = int(os.environ.get("PORT", 7860))
|
13 |
-
API_TIMEOUT =
|
14 |
|
15 |
# --- Style Template Optimization ---
|
16 |
BASE_TEMPLATE = """Describe this design as a concise Flux 1.1 Pro prompt focusing on:
|
@@ -209,4 +209,4 @@ def build_interface():
|
|
209 |
# --- Production Launch ---
|
210 |
if __name__ == "__main__":
|
211 |
app = build_interface()
|
212 |
-
app.launch(
|
|
|
10 |
# --- Environment Configuration ---
|
11 |
GEMINI_KEY = os.environ.get("GEMINI_KEY", "")
|
12 |
DEFAULT_PORT = int(os.environ.get("PORT", 7860))
|
13 |
+
API_TIMEOUT = 120 # seconds
|
14 |
|
15 |
# --- Style Template Optimization ---
|
16 |
BASE_TEMPLATE = """Describe this design as a concise Flux 1.1 Pro prompt focusing on:
|
|
|
209 |
# --- Production Launch ---
|
210 |
if __name__ == "__main__":
|
211 |
app = build_interface()
|
212 |
+
app.launch()
|