Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -140,10 +140,13 @@ def add_save(space,save_state):
|
|
140 |
return save_state,gr.update(choices=[f for f in save_state],interactive=True)
|
141 |
|
142 |
def rem_save(space,save_state):
|
|
|
143 |
for ea in save_state:
|
|
|
|
|
144 |
if not space == ea:
|
145 |
-
|
146 |
-
return
|
147 |
|
148 |
with gr.Blocks(css=css) as build:
|
149 |
save_state=gr.State()
|
|
|
140 |
return save_state,gr.update(choices=[f for f in save_state],interactive=True)
|
141 |
|
142 |
def rem_save(space,save_state):
|
143 |
+
save_out=[]
|
144 |
for ea in save_state:
|
145 |
+
print(space)
|
146 |
+
print(ea)
|
147 |
if not space == ea:
|
148 |
+
save_out.append(space)
|
149 |
+
return save_out, gr.update(choices=[f for f in save_out],interactive=True)
|
150 |
|
151 |
with gr.Blocks(css=css) as build:
|
152 |
save_state=gr.State()
|