Spaces:
Sleeping
Sleeping
clean up state
Browse files
app.py
CHANGED
|
@@ -130,10 +130,6 @@ with gr.Blocks() as demo:
|
|
| 130 |
# We make a new recording id, and store it in a Gradio's session state.
|
| 131 |
recording_id = gr.State(uuid.uuid4())
|
| 132 |
|
| 133 |
-
# Also store the current timeline and time of the viewer in the session state.
|
| 134 |
-
current_timeline = gr.State("")
|
| 135 |
-
current_time = gr.State(0.0)
|
| 136 |
-
|
| 137 |
# When registering the event listeners, we pass the `recording_id` in as input in order to create
|
| 138 |
# a recording stream using that id.
|
| 139 |
detect_objects.click(
|
|
|
|
| 130 |
# We make a new recording id, and store it in a Gradio's session state.
|
| 131 |
recording_id = gr.State(uuid.uuid4())
|
| 132 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 133 |
# When registering the event listeners, we pass the `recording_id` in as input in order to create
|
| 134 |
# a recording stream using that id.
|
| 135 |
detect_objects.click(
|