BladeSzaSza commited on
Commit
254ba18
·
verified ·
1 Parent(s): 3b028ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -21
app.py CHANGED
@@ -21,8 +21,8 @@ try:
21
  from version import __version__, __author__, get_version_info
22
  print(f"🎭 Laban Movement Analysis v{__version__} by {__author__}")
23
  except ImportError:
24
- __version__ = "0.01-beta"
25
- print("🎭 Laban Movement Analysis - Version info not found")
26
 
27
  # Add demo directory to path
28
  sys.path.insert(0, str(Path(__file__).parent / "demo"))
@@ -37,27 +37,10 @@ try:
37
 
38
  # Configure for Hugging Face Spaces
39
  demo.launch(
40
- show_api=True
 
41
  )
42
 
43
- except ImportError as e:
44
- print(f"❌ Import error: {e}")
45
- print("Make sure all dependencies are installed.")
46
- print("Trying alternative import method...")
47
-
48
- # Fallback import method
49
- try:
50
- import importlib.util
51
- spec = importlib.util.spec_from_file_location("demo_app", Path(__file__).parent / "demo" / "app.py")
52
- demo_module = importlib.util.module_from_spec(spec)
53
- spec.loader.exec_module(demo_module)
54
-
55
- demo = demo_module.create_unified_demo()
56
- demo.launch(
57
- show_api=True
58
- )
59
- except Exception as fallback_error:
60
- print(f"❌ Fallback failed: {fallback_error}")
61
 
62
  except Exception as e:
63
  print(f"❌ Error launching demo: {e}")
 
21
  from version import __version__, __author__, get_version_info
22
  print(f"🎭 Laban Movement Analysis v{__version__} by {__author__}")
23
  except ImportError:
24
+ __version__ = "not-found"
25
+ print("🎭 Laban Movement Analysis")
26
 
27
  # Add demo directory to path
28
  sys.path.insert(0, str(Path(__file__).parent / "demo"))
 
37
 
38
  # Configure for Hugging Face Spaces
39
  demo.launch(
40
+ show_api=True,
41
+ mcp_server=True
42
  )
43
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
 
45
  except Exception as e:
46
  print(f"❌ Error launching demo: {e}")