Mobile UI: compact card layout for tables; switch Gemini default to 2.5-pro

This commit is contained in:
Georges Haddad
2026-04-22 12:58:35 +03:00
parent 4cbaa640fd
commit f6c87e761e
4 changed files with 209 additions and 73 deletions
+4 -2
View File
@@ -20,8 +20,10 @@ SECRET_KEY = os.environ.get("SECRET_KEY", "")
DATABASE_PATH = os.environ.get("DB_PATH", str(BASE_DIR / "data" / "realestate.db"))
UPLOAD_DIR = os.environ.get("UPLOAD_DIR", str(BASE_DIR / "uploads"))
MAX_CONCURRENT_EXTRACTIONS = int(os.environ.get("MAX_CONCURRENT", "3"))
CLAUDE_MODEL = "claude-sonnet-4-6"
GEMINI_MODEL = "gemini-2.5-flash"
CLAUDE_MODEL = os.environ.get("CLAUDE_MODEL", "claude-sonnet-4-6")
# Gemini 2.5 Pro is more reliable than Flash for Arabic OCR/reasoning
# (Flash occasionally returns refusals / "absolute" style hedges). Override via env if needed.
GEMINI_MODEL = os.environ.get("GEMINI_MODEL", "gemini-2.5-pro")
# Production mode — set to "production" on VPS
ENVIRONMENT = os.environ.get("ENVIRONMENT", "development")