Spaces:
Runtime error
Runtime error
File size: 850 Bytes
927c050 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | import os
import logging
from dotenv import load_dotenv
load_dotenv()
logging.basicConfig(
level=logging.INFO,
format="%(asctime)s | %(name)s | %(levelname)s | %(message)s",
handlers=[logging.StreamHandler()],
)
class Settings:
openai_api_key: str = os.getenv("OPENAI_API_KEY", "")
openai_api_base: str = os.getenv("OPENAI_API_BASE", "")
model_name: str = os.getenv("MODEL_NAME", "gpt-4o-mini")
temperature: float = float(os.getenv("TEMPERATURE", "0"))
port: int = int(os.getenv("PORT", "7860"))
app_title: str = "Music Store Assistant"
app_description: str = (
"Welcome! I can help you explore our music catalog, look up invoices, "
"and find your purchase history. To access your account, please provide "
"your Customer ID, email, or phone number."
)
settings = Settings()
|