Spaces:
Sleeping
Sleeping
Update app.py
Browse files11 unmodified lines1213141516171811 unmodified lineslogging.basicConfig(level=logging.INFO, format="%(asctime)s - %(levelname)s - %(message)s")# -------------------- External Model Call (with Caching and Retry) --------------------async def call_model(prompt: str, model: str = "gpt-4o", api_key: str = None, max_retries: int = 3) -> str:if api_key is None:api_key = os.getenv("OPENAI_API_KEY")if api_key is None:11 unmodified lines1213141516171811 unmodified lineslogging.basicConfig(level=logging.INFO, format="%(asctime)s - %(levelname)s - %(message)s")# -------------------- External Model Call (with Caching and Retry) --------------------async def call_model(prompt: str, model: str = "gpt-4o", api_key: str = None, max_retries: int = 5) -> str:if api_key is None:api_key = os.getenv("OPENAI_API_KEY")if api_key is None:
app.py+1-1