mroccuper commited on
Commit
cce6f28
·
verified ·
1 Parent(s): cb93ca5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = 30 # seconds
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(server_name="0.0.0.0", server_port=DEFAULT_PORT)
 
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()