FastAPI / config.py
ravi19's picture
Deploy FastAPI to HF Space
b36cb8b
"""
Configuration settings for the Image Similarity API
"""
import os
class Config:
"""Configuration class for the application"""
def __init__(self):
self.qdrant_url = os.getenv("QDRANT_URL",
"https://b6138c60-0a19-4ba7-b6a5-f70a7d653b57.us-west-1-0.aws.cloud.qdrant.io")
self.qdrant_api_key = os.getenv("QDRANT_API_KEY",
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3MiOiJtIn0.XQrkVFAz02zgcvVYbmoneq36biKdbP6491n5I-RrCpQ")
self.collection_name = os.getenv("COLLECTION_NAME", "marqe_embedings")
# self.api_key = os.getenv("API_KEY", "your-api-key-here")
self.model_name = os.getenv("MODEL_NAME", "hf-hub:Marqo/marqo-ecommerce-embeddings-L")
self.embedding_size = 768
self.port = int(os.getenv("PORT", 8000))
self.environment = os.getenv("ENVIRONMENT", "production")