File size: 1,360 Bytes
e49993e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3fcac1c
e49993e
 
 
3fcac1c
e49993e
 
3fcac1c
 
e49993e
 
 
 
 
 
3fcac1c
e49993e
 
 
3fcac1c
e49993e
 
3fcac1c
 
e49993e
 
 
 
3fcac1c
 
e49993e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/env python3
"""
Laban Movement Analysis - Complete Suite
Hugging Face Spaces Deployment

Created by: Csaba Bolyós (BladeSzaSza)
Contact: bladeszasza@gmail.com
GitHub: https://github.com/bladeszasza
LinkedIn: https://www.linkedin.com/in/csaba-bolyós-00a11767/
Hugging Face: https://huggingface.co/BladeSzaSza

Heavy Beta Version - Under Active Development
"""

import sys
from pathlib import Path
import traceback

# Import version info
try:
    from version import __version__, __author__
    print(f"🎭 Laban Movement Analysis v{__version__} by {__author__}")
except ImportError:
    __version__ = "not-found"
    print("🎭 Laban Movement Analysis")

# Add demo directory to path
sys.path.insert(0, str(Path(__file__).parent / "demo"))

try:
    # Import from demo.app to avoid circular import
    from demo.app import create_demo
    
    if __name__ == "__main__":
        print("🚀 Starting Laban Movement Analysis...")
        demo = create_demo()
        
        # Configure for Hugging Face Spaces
        # Try a simpler launch first for debugging
        demo.launch(server_name='0.0.0.0', server_port=7860, mcp_server=True)
        
        
except Exception as e:
    print(f"❌ Error launching demo: {e}")
    print("Full traceback below:")
    print(traceback.format_exc())
    print("Check the logs above for more details.")