Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""
|
| 3 |
+
Hugging Face Spaces Entry Point
|
| 4 |
+
This file must remain in root for HF Spaces compatibility
|
| 5 |
+
Imports and runs the main application from core/app.py
|
| 6 |
+
"""
|
| 7 |
+
|
| 8 |
+
# Import the main application from core
|
| 9 |
+
from core.app import (
|
| 10 |
+
VideoProcessor,
|
| 11 |
+
processor,
|
| 12 |
+
load_models_with_validation,
|
| 13 |
+
process_video_fixed,
|
| 14 |
+
get_model_status,
|
| 15 |
+
get_cache_status,
|
| 16 |
+
PROCESS_CANCELLED,
|
| 17 |
+
main
|
| 18 |
+
)
|
| 19 |
+
|
| 20 |
+
# Re-export for backward compatibility
|
| 21 |
+
__all__ = [
|
| 22 |
+
'VideoProcessor',
|
| 23 |
+
'processor',
|
| 24 |
+
'load_models_with_validation',
|
| 25 |
+
'process_video_fixed',
|
| 26 |
+
'get_model_status',
|
| 27 |
+
'get_cache_status',
|
| 28 |
+
'PROCESS_CANCELLED'
|
| 29 |
+
]
|
| 30 |
+
|
| 31 |
+
# Entry point for Hugging Face Spaces
|
| 32 |
+
if __name__ == "__main__":
|
| 33 |
+
main()
|