Csaba Bolyos
commited on
Commit
·
05b9065
1
Parent(s):
f54601d
removed the example refferences
Browse files- demo/app.py +1 -3
- demo/space.py +1 -2
- examples/agent_example.py +3 -7
demo/app.py
CHANGED
|
@@ -369,8 +369,7 @@ def create_unified_demo():
|
|
| 369 |
|
| 370 |
gr.Examples(
|
| 371 |
examples=[
|
| 372 |
-
["
|
| 373 |
-
["examples/balette.mp4"],
|
| 374 |
],
|
| 375 |
inputs=video_input_std,
|
| 376 |
label="Example Videos"
|
|
@@ -432,7 +431,6 @@ def create_unified_demo():
|
|
| 432 |
|
| 433 |
gr.Examples(
|
| 434 |
examples=[
|
| 435 |
-
["examples/balette.mov"],
|
| 436 |
["https://www.youtube.com/shorts/RX9kH2l3L8U"],
|
| 437 |
["https://vimeo.com/815392738"]
|
| 438 |
],
|
|
|
|
| 369 |
|
| 370 |
gr.Examples(
|
| 371 |
examples=[
|
| 372 |
+
["https://www.youtube.com/shorts/RX9kH2l3L8U"]
|
|
|
|
| 373 |
],
|
| 374 |
inputs=video_input_std,
|
| 375 |
label="Example Videos"
|
|
|
|
| 431 |
|
| 432 |
gr.Examples(
|
| 433 |
examples=[
|
|
|
|
| 434 |
["https://www.youtube.com/shorts/RX9kH2l3L8U"],
|
| 435 |
["https://vimeo.com/815392738"]
|
| 436 |
],
|
demo/space.py
CHANGED
|
@@ -409,7 +409,7 @@ def create_unified_demo():
|
|
| 409 |
|
| 410 |
gr.Examples(
|
| 411 |
examples=[
|
| 412 |
-
["
|
| 413 |
],
|
| 414 |
inputs=video_input_std,
|
| 415 |
label="Example Videos"
|
|
@@ -471,7 +471,6 @@ def create_unified_demo():
|
|
| 471 |
|
| 472 |
gr.Examples(
|
| 473 |
examples=[
|
| 474 |
-
["examples/balette.mp4"],
|
| 475 |
["https://www.youtube.com/shorts/RX9kH2l3L8U"],
|
| 476 |
["https://vimeo.com/815392738"]
|
| 477 |
],
|
|
|
|
| 409 |
|
| 410 |
gr.Examples(
|
| 411 |
examples=[
|
| 412 |
+
["https://www.youtube.com/shorts/RX9kH2l3L8U"]
|
| 413 |
],
|
| 414 |
inputs=video_input_std,
|
| 415 |
label="Example Videos"
|
|
|
|
| 471 |
|
| 472 |
gr.Examples(
|
| 473 |
examples=[
|
|
|
|
| 474 |
["https://www.youtube.com/shorts/RX9kH2l3L8U"],
|
| 475 |
["https://vimeo.com/815392738"]
|
| 476 |
],
|
examples/agent_example.py
CHANGED
|
@@ -25,7 +25,7 @@ def main():
|
|
| 25 |
print("🎭 Laban Movement Analysis - Agent API Examples\n")
|
| 26 |
|
| 27 |
# Example video paths (replace with your own)
|
| 28 |
-
video_path = "
|
| 29 |
|
| 30 |
# 1. Quick analysis with summary
|
| 31 |
print("1. Quick Analysis with Summary")
|
|
@@ -57,11 +57,7 @@ def main():
|
|
| 57 |
# 3. Batch processing example
|
| 58 |
print("3. Batch Processing")
|
| 59 |
print("-" * 40)
|
| 60 |
-
video_paths = [
|
| 61 |
-
"examples/dance.mp4",
|
| 62 |
-
"examples/exercise.mp4",
|
| 63 |
-
"examples/walking.mp4"
|
| 64 |
-
]
|
| 65 |
|
| 66 |
# Filter out non-existent files
|
| 67 |
existing_paths = [p for p in video_paths if Path(p).exists()]
|
|
@@ -127,7 +123,7 @@ def async_example():
|
|
| 127 |
|
| 128 |
async def analyze_async():
|
| 129 |
api = LabanAgentAPI()
|
| 130 |
-
result = await api.analyze_async("
|
| 131 |
return api.get_movement_summary(result)
|
| 132 |
|
| 133 |
# Run async example
|
|
|
|
| 25 |
print("🎭 Laban Movement Analysis - Agent API Examples\n")
|
| 26 |
|
| 27 |
# Example video paths (replace with your own)
|
| 28 |
+
video_path = ""
|
| 29 |
|
| 30 |
# 1. Quick analysis with summary
|
| 31 |
print("1. Quick Analysis with Summary")
|
|
|
|
| 57 |
# 3. Batch processing example
|
| 58 |
print("3. Batch Processing")
|
| 59 |
print("-" * 40)
|
| 60 |
+
video_paths = []
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
|
| 62 |
# Filter out non-existent files
|
| 63 |
existing_paths = [p for p in video_paths if Path(p).exists()]
|
|
|
|
| 123 |
|
| 124 |
async def analyze_async():
|
| 125 |
api = LabanAgentAPI()
|
| 126 |
+
result = await api.analyze_async("")
|
| 127 |
return api.get_movement_summary(result)
|
| 128 |
|
| 129 |
# Run async example
|