Raffael-Kultyshev commited on
Commit
75448c2
·
1 Parent(s): f0e54b5

Use exact reference structure with demo.queue().launch()

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -163,7 +163,10 @@ def build_state_dataframe(metadata: dict, end_effector: dict, hand: str = "left"
163
  """Build state dataframe from JSON data."""
164
  fps = metadata.get('fps', 60)
165
 
166
- frame_keys = sorted([int(k) for k in end_effector.keys() if str(k).isdigit()])
 
 
 
167
 
168
  timestamps = []
169
  state_data = {
 
163
  """Build state dataframe from JSON data."""
164
  fps = metadata.get('fps', 60)
165
 
166
+ try:
167
+ frame_keys = sorted([int(k) for k in end_effector.keys() if str(k).isdigit()])
168
+ except:
169
+ frame_keys = []
170
 
171
  timestamps = []
172
  state_data = {