Commit History

Add compressed image support with 2-3MB target file size - Add Compressed_Image_URL field to colorize endpoint response - Implement compress_image_to_target_size function with iterative quality/dimension adjustment - Original download_url returns uncompressed PNG (model output) - Compressed_Image_URL returns JPEG compressed to 2-3MB file size
3105993

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

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 success/failure logging to colorizations collection
2ebd872

LogicGoInfotechSpaces commited on

Update default fallback category ID to 69368fcd2e46bd68ae1889b2
a59cff0

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 integration for API call logging with timestamps
87f9058

LogicGoInfotechSpaces commited on

Fix Gradio permission error by setting GRADIO_TEMP_DIR to /tmp
235075d

LogicGoInfotechSpaces commited on

Add fallback logic to handle PyTorch models and find actual model files - Add manual download fallback when from_pretrained_fastai fails - List repository files to find .pkl or .pt files - Provide clear error message for PyTorch models
6960c4e

LogicGoInfotechSpaces commited on

Integrate FastAI colorization with Firebase auth and Gradio UI - Replace main.py with FastAI implementation - Add Gradio interface for Space UI - Add Firebase authentication to /colorize endpoint - Add curl examples documentation - Update test.py with User-Agent headers
e4599d1

LogicGoInfotechSpaces commited on

Fix cache directory permissions and OMP_NUM_THREADS warnings - Set HF cache env vars before imports - Set MPLCONFIGDIR for matplotlib - Fix OMP_NUM_THREADS in Dockerfile
6108abf

LogicGoInfotechSpaces commited on

Switch to FastAI GAN colorization model (Hammad712/GAN-Colorization-Model)
5e6062c

LogicGoInfotechSpaces commited on

Fix colorize pipeline call and fallback storage directories
bfba916

LogicGoInfotechSpaces commited on

Fix model loading: use /data for HF cache directory instead of /app/data
2f136a8

LogicGoInfotechSpaces commited on

fix(runtime): use /data for uploads/results and write Firebase creds to /data; set DATA_DIR and OMP_NUM_THREADS
8fa7f23

LogicGoInfotechSpaces commited on

Deploy: HF cache dir, img2img fallback, auth bypass, root route
7471c96

LogicGoInfotechSpaces commited on

feat(auth): accept Firebase Auth id_token (Authorization Bearer) in addition to App Check; add Postman collection and test script; default MODEL_ID to ControlNet color
2ae242d

LogicGoInfotechSpaces commited on

Remove unused cv2 import and pin numpy version for compatibility
97034d3

LogicGoInfotechSpaces commited on

Initial commit: Colorize API with Firebase App Check integration
60c56d7

LogicGoInfotechSpaces commited on