Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Clémentine
commited on
Commit
·
8cc9490
1
Parent(s):
c869604
updated overwrite lib
Browse files- yourbench_space/app.py +3 -3
yourbench_space/app.py
CHANGED
@@ -132,9 +132,9 @@ def run_evaluation_pipeline(oauth_token: gr.OAuthToken | None, org_name, eval_na
|
|
132 |
|
133 |
def init_session():
|
134 |
"""Update session on load"""
|
135 |
-
|
136 |
-
MANAGERS.create(
|
137 |
-
return gr.State(
|
138 |
|
139 |
|
140 |
with gr.Blocks(theme=gr.themes.Default()) as app:
|
|
|
132 |
|
133 |
def init_session():
|
134 |
"""Update session on load"""
|
135 |
+
local_uuid = str(uuid.uuid4())
|
136 |
+
MANAGERS.create(local_uuid)
|
137 |
+
return gr.State(local_uuid, delete_callback=lambda uid: MANAGERS.remove(uid))
|
138 |
|
139 |
|
140 |
with gr.Blocks(theme=gr.themes.Default()) as app:
|