Commit History

Add CORS middleware to main.py for auth endpoints
2dda86f

LogicGoInfotechSpaces commited on

Fix Firebase import handling in auth endpoints - Ensure firebase_admin is always defined - Fix Firebase initialization checks - Improve error messages
4b2a2a9

LogicGoInfotechSpaces commited on

Add auth endpoints to main.py - Add /auth/register, /auth/login, /auth/me, /auth/refresh endpoints - Add Pydantic models for auth requests/responses - Add verify_request function for Firebase auth - Import httpx for Firebase REST API calls
6b118c7

LogicGoInfotechSpaces commited on

Update health endpoint to match requested format with hf_inference_api and fal-ai
58427fc

LogicGoInfotechSpaces commited on

Update response formats for /colorize and /health endpoints - /colorize: Add filename, caption, change to PNG format, api_download_url - /health: Add model_type and provider fields
9587da3

LogicGoInfotechSpaces commited on

Make CCO model default for colorization - Change default model from GAN (dummy) to CCO (working) - Add fallback to GAN if CCO not available - Fix image format and saving issues
42ba2b6

LogicGoInfotechSpaces commited on

Make IPython import optional in colorizers to fix CCO model loading
fd2b9a9

LogicGoInfotechSpaces commited on

Change Dockerfile to use main.py instead of main_sdxl.py for CCO model integration
d9963fa

LogicGoInfotechSpaces commited on

Remove model_used field from response to maintain original response format
bd378a6

LogicGoInfotechSpaces commited on

Integrate CCO colorization models (eccv16 and siggraph17) - Add CCO colorizers module from kinsung/cco - Update /colorize endpoint to support model selection parameter - Add scikit-image dependency - Maintain backward compatibility with existing GAN model - Update MongoDB logging to track model type used
b6181ba

LogicGoInfotechSpaces commited on

Add ai_edit_daily_count tracking to media_clicks collection
6848f57

LogicGoInfotechSpaces commited on

Change ai_edit_last_date to MongoDB Date object format - Store as Date object instead of string format
9a427d9

LogicGoInfotechSpaces commited on

Add ai_edit_complete and ai_edit_last_date to media_clicks collection
c675c5a

LogicGoInfotechSpaces commited on

Add success/failure logging to colorizations collection
2ebd872

LogicGoInfotechSpaces commited on

Update default fallback category ID to 69368fcd2e46bd68ae1889b2
a59cff0

LogicGoInfotechSpaces commited on

Set admin database name to adminPanel for media_clicks collection
0047f3c

LogicGoInfotechSpaces commited on

Fix empty string handling and support both subCategories and categories schemas
0183b1e

LogicGoInfotechSpaces commited on

Add MongoDB media click logging with per-user category counts
49b5e1e

LogicGoInfotechSpaces commited on

Fix MongoDB database boolean check - use 'is None' instead of truthiness
a7ddf76

LogicGoInfotechSpaces commited on

Add MongoDB test scripts and documentation (no credentials exposed)
96a6d41

LogicGoInfotechSpaces commited on

Fix Gradio compatibility: remove show_copy_button parameter
2f38f7e

LogicGoInfotechSpaces commited on

Add MongoDB integration for API call logging with timestamps
87f9058

LogicGoInfotechSpaces commited on

Update Firebase initialization to auto-detect credentials file and add setup guide
a0088ec

LogicGoInfotechSpaces commited on

Add Firebase email/password authentication endpoints - Add /auth/register endpoint for user registration - Add /auth/login endpoint with Firebase REST API integration - Add /auth/me endpoint to get current user info - Add /auth/refresh endpoint for token refresh - Integrate with existing Firebase App Check - Add httpx and email-validator dependencies
c85fec3

LogicGoInfotechSpaces commited on

Refactor to use Hugging Face Inference API with fal-ai provider - Replace local model loading with InferenceClient API - Remove heavy SDXL/ControlNet/BLIP model dependencies - Use FLUX.1-Kontext-dev model via API - Keep FastAPI and Firebase authentication - Significantly reduce memory usage (no local models)
ae9bbd0

LogicGoInfotechSpaces commited on

Add memory optimizations for SDXL pipeline - Enable VAE slicing and tiling - Enable attention slicing for UNet and ControlNet - Use sequential CPU offloading for pipeline - Keep BLIP model on CPU to save GPU memory - Add torch.no_grad() and cache clearing - Reduce guidance scale for lower memory usage
807fb92

LogicGoInfotechSpaces commited on

Fix permission errors and environment variables for model loading - Use /tmp directory for writable model storage - Set OMP_NUM_THREADS and cache directories at startup - Add better error handling and permission checks
da9ea7d

LogicGoInfotechSpaces commited on

Add FastAPI version using SDXL + ControlNet for text-guided colorization (from fffiloni)
779884f

LogicGoInfotechSpaces commited on

Improve fallback colorization with better color hints and saturation
a315115

LogicGoInfotechSpaces commited on

Add simple colorization fallback using LAB color space when model fails to load
f40725d

LogicGoInfotechSpaces commited on