Spaces:
Sleeping
Sleeping
Fix: Error blue rectangle not appearing for first example
Browse files
__pycache__/load_and_save.cpython-310.pyc
CHANGED
|
Binary files a/__pycache__/load_and_save.cpython-310.pyc and b/__pycache__/load_and_save.cpython-310.pyc differ
|
|
|
__pycache__/text_explanations.cpython-310.pyc
CHANGED
|
Binary files a/__pycache__/text_explanations.cpython-310.pyc and b/__pycache__/text_explanations.cpython-310.pyc differ
|
|
|
__pycache__/utils.cpython-310.pyc
CHANGED
|
Binary files a/__pycache__/utils.cpython-310.pyc and b/__pycache__/utils.cpython-310.pyc differ
|
|
|
app.py
CHANGED
|
@@ -65,7 +65,7 @@ with (gr.Blocks(theme=gr.themes.Soft(), css = css) as demo):
|
|
| 65 |
image = gr.Image(label = "Annotation Interface", value = f"{persistent_storage}/instructions_annotation.png", container = False, type = "filepath", show_label = False, show_download_button = False, show_fullscreen_button = False,show_share_button = False)
|
| 66 |
|
| 67 |
|
| 68 |
-
with gr.Tab("Annotation Interface"):
|
| 69 |
ann_completed = gr.State(0)
|
| 70 |
ann_completed_temp = gr.Number(0, visible = False)
|
| 71 |
total = gr.State(0)
|
|
@@ -157,10 +157,10 @@ with (gr.Blocks(theme=gr.themes.Soft(), css = css) as demo):
|
|
| 157 |
|
| 158 |
audio_player.play(count_clicks, [n_clicks], [n_clicks])
|
| 159 |
|
| 160 |
-
sidebar.collapse(
|
| 161 |
[start_temp, end_temp, duration_temp, current_index_temp, ann_completed_temp, total_temp]).then(None, [], [start_temp, end_temp, duration_temp, current_index_temp, ann_completed_temp, total_temp], js = js_progress_bar)
|
| 162 |
|
| 163 |
-
sidebar.expand(
|
| 164 |
[start_temp, end_temp, duration_temp, current_index_temp, ann_completed_temp, total_temp]).then(None, [], [start_temp, end_temp, duration_temp, current_index_temp, ann_completed_temp, total_temp], js = js_progress_bar)
|
| 165 |
|
| 166 |
|
|
@@ -177,6 +177,8 @@ with (gr.Blocks(theme=gr.themes.Soft(), css = css) as demo):
|
|
| 177 |
|
| 178 |
get_files_button.click(fn=get_storage, inputs=[password], outputs=[files, storage])
|
| 179 |
|
|
|
|
|
|
|
| 180 |
|
| 181 |
|
| 182 |
demo.launch(allowed_paths = ['/data'])
|
|
|
|
| 65 |
image = gr.Image(label = "Annotation Interface", value = f"{persistent_storage}/instructions_annotation.png", container = False, type = "filepath", show_label = False, show_download_button = False, show_fullscreen_button = False,show_share_button = False)
|
| 66 |
|
| 67 |
|
| 68 |
+
with gr.Tab("Annotation Interface") as ann_interface:
|
| 69 |
ann_completed = gr.State(0)
|
| 70 |
ann_completed_temp = gr.Number(0, visible = False)
|
| 71 |
total = gr.State(0)
|
|
|
|
| 157 |
|
| 158 |
audio_player.play(count_clicks, [n_clicks], [n_clicks])
|
| 159 |
|
| 160 |
+
sidebar.collapse(state_to_number, [start, end, duration, current_index, ann_completed, total],
|
| 161 |
[start_temp, end_temp, duration_temp, current_index_temp, ann_completed_temp, total_temp]).then(None, [], [start_temp, end_temp, duration_temp, current_index_temp, ann_completed_temp, total_temp], js = js_progress_bar)
|
| 162 |
|
| 163 |
+
sidebar.expand(state_to_number, [start, end, duration, current_index, ann_completed, total],
|
| 164 |
[start_temp, end_temp, duration_temp, current_index_temp, ann_completed_temp, total_temp]).then(None, [], [start_temp, end_temp, duration_temp, current_index_temp, ann_completed_temp, total_temp], js = js_progress_bar)
|
| 165 |
|
| 166 |
|
|
|
|
| 177 |
|
| 178 |
get_files_button.click(fn=get_storage, inputs=[password], outputs=[files, storage])
|
| 179 |
|
| 180 |
+
ann_interface.select(state_to_number, [start, end, duration, current_index, ann_completed, total],
|
| 181 |
+
[start_temp, end_temp, duration_temp, current_index_temp, ann_completed_temp, total_temp]).then(None, [], [start_temp, end_temp, duration_temp, current_index_temp, ann_completed_temp, total_temp], js = js_progress_bar)
|
| 182 |
|
| 183 |
|
| 184 |
demo.launch(allowed_paths = ['/data'])
|