Spaces:
Runtime error
Runtime error
Commit History
-
little twicks
Prathamesh Sablef746ed1
-
bug fix
Prathamesh Sablec43a7a2 -
bug fix
7d533c9 -
bug fix
718887f -
Merge branch 'main' of https://github.com/prathameshks/FoodAnalyzer-API
d5e35e8 -
added API for vuforia to get analysis testing pending
e18b17c
-
made to use HF auth
Prathamesh Sablee631be8 -
working add product
Prathamesh Sable8986db1
-
moved environment variables to common file
Prathamesh Sable0f54ea3
-
working ids task and logging changes
Prathamesh Sable9b92ec5 -
Add ingredient IDs to product analysis and storage
Prathamesh Sable* **db/models.py**: Add `ingredient_ids` column to `Product` model. * **db/repositories.py**: Refactor `add_product` method in `ProductRepository` to handle analysis of product data. * **routers/product.py**: Update `create_product` function to ensure analysis of product data is stored correctly. * **services/productAnalyzerAgent.py**: Ensure `analyze_product_ingredients` function returns analysis data in the correct format. Update `analyze_product_ingredients` function to include ingredient IDs in the analysis data.b37d30d -
modularization of ing agent
Prathamesh Sable21c0d12 -
product model update
103bb6b
-
add product complete with vuforia
2e67005
-
lower email and null name handle
Prathamesh Sablee3c16ea
-
change username to name and login by email as userid
Prathamesh Sable00e8345
-
bug fix
Prathamesh Sable2b9f762 -
Enhance ingredient processing with async support and rate limiting; update JWT expiration to 15 days; improve product analysis prompt clarity and scan history timestamp handling.
Prathamesh Sable48e95f0
-
working ingredient analysis finetune needed
Prathamesh Sable59ab782
-
working ingredient analysis with allergic and diet type
Prathamesh Sablefc5a259
-
added agent and other services update
Prathamesh Sableda8dc09
-
Fix import errors from utils file and folder
Prathamesh Sable--- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/prathameshks/FoodAnalyzer-API/tree/main?shareId=XXXX-XXXX-XXXX-XXXX).5c9842b - Prathamesh Sable28483c2
-
Add new utility modules and update imports in `services/ai_agent.py`
Prathamesh Sable* **New utility modules** - Add `fetch_product_data_from_api` function to `utils/fetch_data.py` - Add `save_json_file` function to `utils/file_operations.py` - Add `extract_text_from_image` and `detect_barcode_from_image` functions to `utils/image_processing.py` * **Update imports** - Update import statement for `fetch_product_data_from_api` to `utils/fetch_data.py` - Update import statement for `save_json_file` to `utils/file_operations.py` * **Remove old utility module** - Delete `utils.py`1b050e5 -
Add product module and update ingredient model
Prathamesh SableAdd a new `Product` model and update the `Ingredient` model with additional fields. * **Product Model**: - Add `models/product.py` to define the `Product` model with fields like `product_name`, `generic_name`, `brands`, `ingredients`, `ingredients_text`, `ingredients_analysis`, `nutriscore`, `nutrient_levels`, `nutriments`, and `data_quality_warnings`. - Update `models/__init__.py` to import and include the `Product` model. * **Ingredient Model**: - Add new fields to `models/ingredient.py`: `description`, `origin`, `allergens`, `vegan`, and `vegetarian`. - Create Alembic migration script `migrations/versions/xxxx_add_product_and_update_ingredient.py` to add the `Product` table and update the `Ingredient` table. * **Services**: - Modify `services/ai_agent.py` to save product details in the `Product` model and ingredient details in the `Ingredient` model. - Update `services/ingredients.py` to fetch and save new fields for ingredients. * **Endpoints**: - Update `routers/…d10bf47 -
Fix test errors in FoodAnalyzer-API
Prathamesh SableFix import errors and update test cases to resolve test failures. * **database.py** - Add import statement for `Base` from `models.base`. - Add `Base` to the list of imports in the `get_db` function. * **services/ai_agent.py** - Change `fetch_product_data_from_api` to `fetch_ingredient_data_from_api` in `enrich_data` function. - Change `save_ingredient_data` call to use `ingredient["text"]` instead of `ingredient["text"].lower()`. * **services/analysis_agent.py** - Add import statement for `Ingredient` from `models.ingredient`. - Change `preferences` parameter in `filter_ingredients_by_preferences` call to `preferences.__dict__` in `analyze_ingredients` function. * **tests/test_ai_agent_service.py** - Change `mock_save_ingredient_data.assert_called_once_with` call to use `ingredient["text"]` instead of `ingredient["text"].lower()` in `test_enrich_data` function. * **tests/test_auth_service.py** - Change endpoint paths in `test_register_user`, `test_login_user`, and…a0f4490 -
working models
Prathamesh Sable724ff38 -
Add Hugging Face Transformers integration and update documentation
Prathamesh Sable* **services/ai_agent.py** - Add `integrate_hugging_face_transformers` function to integrate Hugging Face Transformers for NLP tasks. * **tests/test_ai_agent_service.py** - Add unit test for `integrate_hugging_face_transformers` function. * **requirements.txt** - Add `transformers` library. * **.env.example** - Add example environment variables including Hugging Face Transformers API key. * **README.md** - Add installation and setup instructions. - Add API endpoints documentation. - Add environment variables documentation.af48aca -
Add requirements for OCR, barcode detection, database management, and caching
Prathamesh Sable--- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/prathameshks/FoodAnalyzer-API?shareId=XXXX-XXXX-XXXX-XXXX).38c555b