Commit History

fix: HfFolder ImportError - add compatibility shim for huggingface_hub 1.x
1b50d56

Harshith Reddy commited on

Fix: Always use FastAPI as server, remove Gradio-only fallback, remove demo.launch()
1bb4c2b

Harshith Reddy commited on

Mount Gradio at /gradio to prevent interference with API routes
dc7149f

Harshith Reddy commited on

Fix Request parameter to use dependency injection
0b85642

Harshith Reddy commited on

Add file validation and fix request parameter order
71b7140

Harshith Reddy commited on

Fix CORS for GitHub Pages and improve multipart request handling
c478bee

Harshith Reddy commited on

Add detailed logging for multipart requests and route registration
88312c3

Harshith Reddy commited on

Fix exception handler to prevent UnicodeDecodeError and improve error messages
88dc9a3

Harshith Reddy commited on

Add route registration logging before Gradio mount
8c09633

Harshith Reddy commited on

Add explicit JSONResponse to segment endpoint
9eb761e

Harshith Reddy commited on

Fix middleware to not consume request body for file uploads
e6af87d

Harshith Reddy commited on

Add request logging middleware to debug Method Not Allowed errors
3a531e5

Harshith Reddy commited on

Add route debugging and ensure FastAPI routes are properly registered
579632e

Harshith Reddy commited on

Fix API routes and add root endpoint
4b1ce2f

Harshith Reddy commited on

Add detailed logging for API requests to show in Hugging Face logs
a1bd718

Harshith Reddy commited on

Increase upload limit to 2 GB to match processing limit
89c2460

Harshith Reddy commited on

Increase file size limits: upload 1 GB, processing 2 GB
6849f7a

Harshith Reddy commited on

Fix critical issues: 50MB upload limit, report guardrails, T2 experimental status, API security, and indentation errors
e3ce1b9

Harshith Reddy commited on

Fix UnboundLocalError and Triton cache permission error
f9a3113

Harshith Reddy commited on

Fix Internal Server Error: mount Gradio Blocks to FastAPI app for Hugging Face Spaces
5b260e5

Harshith Reddy commited on

Fix Gradio 4.44.x schema bug: patch additionalProperties boolean to dict conversion
47c72b7

Harshith Reddy commited on

Fix syntax error: remove embedded error messages from app.py
d2eb469

Harshith Reddy commited on

Fix Gradio launch error: remove unsupported api_name parameter from click() method
23f6376

Harshith Reddy commited on

Fix No API found error: remove API info patching and explicitly set api_name
9663401

Harshith Reddy commited on

Fix API info generation to prevent No API found error
c0afbd4

Harshith Reddy commited on

Fix remaining indentation error at line 133
fedba42

Harshith Reddy commited on

Fix indentation error in log_startup_health function
802e81d

Harshith Reddy commited on

Fix Gradio API info generation bug and localhost launch error
0ca6c99

Harshith Reddy commited on

Fix TF32 API
d8b8562

Harshith Reddy commited on

Switch Dockerfile to CUDA 12.1 + cu121 (recommended), use venv, add nvcc check, verify extensions at build time
239e74c

Harshith Reddy commited on

Add Python Space detection and nvcc check - warn user to switch to Docker Space for CUDA extensions
29b978c

Harshith Reddy commited on

Docker: Add OpenCV libs, use PYTORCH_ALLOC_CONF only with max_split_size_mb=128, create postBuild for Python Spaces fallback
e0e8f87

Harshith Reddy commited on

Fix: Remove unsupported max_split_size_mb=128, use PYTORCH_ALLOC_CONF instead of deprecated PYTORCH_CUDA_ALLOC_CONF
b00f43e

Harshith Reddy commited on

Fix: Exact import test format, TF32 set directly (no try/except), verify allocator config includes max_split_size_mb=128
5f56790

Harshith Reddy commited on

Fix: PyTorch 2.9.0 cu128, simplified setup.sh with fatal errors, TF32=tf32, cuDNN always on, TORCH_CUDA_ARCH_LIST=8.9
6bf725e

Harshith Reddy commited on

Fixed
ff6b142

Harshith Reddy commited on

Production build strategy: Docker support, pinned dependencies, OOM guardrails, optimized defaults
05125f7

Harshith Reddy commited on

Fix OOM: reduce ROI depth to 64, sw_batch_size=1, CPU aggregation, fix env var timing, update TF32 API
8aecceb

Harshith Reddy commited on

Major performance and stability improvements: disable torch.compile by default, GPU preprocessing, ROI auto-adjustment, timeout mechanism, validation, cuDNN benchmarking, version logging, concurrency limits
700e0b1

Harshith Reddy commited on

Optimize for dedicated GPU: Add L4 GPU support with higher memory thresholds and better batch sizes
e1b9ddc

Harshith Reddy commited on

Fix naming conflict: rename model.py to model_loader.py and initialize DEVICE to prevent NoneType errors
493e2f1

Harshith Reddy commited on

Refactor app.py into modular structure: config, model, processing, inference, and app modules
931ed7c

Harshith Reddy commited on

Add aggressive memory management: unload unused models and check memory before inference
ea6df03

Harshith Reddy commited on

Remove CPU fallback - model requires CUDA and cannot run on CPU
5250013

Harshith Reddy commited on

Add PyTorch memory allocator config and enhanced OOM recovery with CPU fallback
6fd75e4

Harshith Reddy commited on

Remove all code comments and add adaptive memory management for OOM prevention
0c3c358

Harshith Reddy commited on

Add comprehensive diagnostic logging and performance optimizations
85fc999

Harshith Reddy commited on

Revert: Restore overlap to 0.15 for better accuracy (matches original deployment)
a10d31f

Harshith Reddy commited on

Optimize: Reduce sliding window overlap and add inference progress tracking
209c3d5

Harshith Reddy commited on

Fix: Handle image_tensor cleanup in finally block safely
86cdf0a

Harshith Reddy commited on