Spaces:
Running
Running
partial success on visualzier
Browse files
app.py
CHANGED
|
@@ -117,6 +117,8 @@ def visualize_trajectory(dataset, index, dataset_name=None):
|
|
| 117 |
|
| 118 |
# Get the frames data (video file path)
|
| 119 |
frames_data = item["frames"]
|
|
|
|
|
|
|
| 120 |
|
| 121 |
# Handle video file path (could be local path or HuggingFace Hub URL)
|
| 122 |
if isinstance(frames_data, str):
|
|
@@ -138,6 +140,8 @@ def visualize_trajectory(dataset, index, dataset_name=None):
|
|
| 138 |
**Language Task:** {task}
|
| 139 |
|
| 140 |
**Quality Label:** {quality_label}
|
|
|
|
|
|
|
| 141 |
|
| 142 |
**Data Type:** {'Robot' if is_robot else 'Human'}
|
| 143 |
|
|
|
|
| 117 |
|
| 118 |
# Get the frames data (video file path)
|
| 119 |
frames_data = item["frames"]
|
| 120 |
+
|
| 121 |
+
partial_success = item.get("partial_success", "N/A")
|
| 122 |
|
| 123 |
# Handle video file path (could be local path or HuggingFace Hub URL)
|
| 124 |
if isinstance(frames_data, str):
|
|
|
|
| 140 |
**Language Task:** {task}
|
| 141 |
|
| 142 |
**Quality Label:** {quality_label}
|
| 143 |
+
|
| 144 |
+
**Partial Success:** {partial_success}
|
| 145 |
|
| 146 |
**Data Type:** {'Robot' if is_robot else 'Human'}
|
| 147 |
|