Spaces:
Build error
Build error
status info changes
Browse files- app.py +1 -1
- funcs/processor.py +1 -1
app.py
CHANGED
@@ -103,7 +103,7 @@ with gr.Blocks(title='Cabasus') as cabasus_sensor:
|
|
103 |
animation = gr.Video(label='animation')
|
104 |
real_video = gr.Video(label='real')
|
105 |
|
106 |
-
slices_per_leg = gr.Textbox(label="
|
107 |
|
108 |
csv_file_box.change(process_data, inputs=[csv_file_box, slice_size_slider, sample_rate, window_size_slider],
|
109 |
outputs=[processed_file_box, json_file_box, slices_per_leg, plot_box_leg, plot_box_overlay, slice_slider, plot_slice_leg, get_all_slice, slice_json_box])
|
|
|
103 |
animation = gr.Video(label='animation')
|
104 |
real_video = gr.Video(label='real')
|
105 |
|
106 |
+
slices_per_leg = gr.Textbox(label="Debug information")
|
107 |
|
108 |
csv_file_box.change(process_data, inputs=[csv_file_box, slice_size_slider, sample_rate, window_size_slider],
|
109 |
outputs=[processed_file_box, json_file_box, slices_per_leg, plot_box_leg, plot_box_overlay, slice_slider, plot_slice_leg, get_all_slice, slice_json_box])
|
funcs/processor.py
CHANGED
@@ -81,4 +81,4 @@ def process_data(input_file, slice_size=64, min_slice_size=16, sample_rate=20, w
|
|
81 |
sensor_fig, slice_fig, get_all_slice, slice_json = plot_sensor_data_from_json(file, "GZ1")
|
82 |
overlay_fig = plot_overlay_data_from_json(file, ["GZ1", "GZ2", "GZ3", "GZ4"], use_precise_timestamp=True)
|
83 |
|
84 |
-
return 'output.csv', file, f'{len_}', sensor_fig, overlay_fig, gr.Slider.update(interactive=True, maximum=len_, minimum=1, value=1), slice_fig, get_all_slice, slice_json
|
|
|
81 |
sensor_fig, slice_fig, get_all_slice, slice_json = plot_sensor_data_from_json(file, "GZ1")
|
82 |
overlay_fig = plot_overlay_data_from_json(file, ["GZ1", "GZ2", "GZ3", "GZ4"], use_precise_timestamp=True)
|
83 |
|
84 |
+
return 'output.csv', file, f'num of slices found: {len_}', sensor_fig, overlay_fig, gr.Slider.update(interactive=True, maximum=len_, minimum=1, value=1), slice_fig, get_all_slice, slice_json
|