Spaces:
Sleeping
Sleeping
| title: AIShoppingAssistance Server | |
| emoji: π₯ | |
| colorFrom: indigo | |
| colorTo: green | |
| sdk: docker | |
| pinned: false | |
| Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference | |
| ## Current Directory Structure for the Server | |
| ``` | |
| hf_server/ | |
| βββ app/ | |
| β βββ __init__.py # Python package marker | |
| β βββ main.py # Main entrypoint (FastAPI, Middlewares, Routers, and lifespans) | |
| β βββ config.py # Server & model configuration constants | |
| β βββ models/ # Pydantic schemas / request-response models | |
| β β βββ __init__.py | |
| β β βββ recipe.py # Pydantic model for recipes | |
| β βββ services/ # Heavy logic & external database clients | |
| β β βββ __init__.py | |
| β β βββ http_client.py # Global HTTPX AsyncClient lifecycle | |
| β β βββ detector.py # CLIP/ONNX model and embedding generation | |
| β β βββ chroma.py # ChromaDB Searcher | |
| β β βββ supabase.py # Supabase Querier | |
| β βββ routes/ # API endpoints | |
| β β βββ __init__.py | |
| β β βββ health.py # health and root paths | |
| β β βββ detection.py # product detection, embeddings, and gallery | |
| β β βββ recipe.py # recipe generation and cart agent | |
| β βββ agents/ # AI agents & parser logic | |
| β βββ __init__.py | |
| β βββ shopping_assistant_agent.py # Main conversational agentic loop | |
| β βββ recipe_agent.py # Recipe agent orchestrator | |
| β βββ tools/ # Agent tools | |
| β βββ __init__.py | |
| β βββ quantity_parser_tool.py # Quantity measurement parser | |
| βββ requirements.txt | |
| βββ Dockerfile # Updated entrypoint cmd | |
| βββ run_local.sh | |
| ``` |