Update app.py
Browse files
app.py
CHANGED
@@ -204,7 +204,7 @@ with gr.Blocks(theme=theme, title="KeyLock Operations Dashboard") as demo:
|
|
204 |
outputs=[creator_service_dropdown, creator_status]
|
205 |
).then(
|
206 |
lambda data: data, # Pass the full data to the state
|
207 |
-
|
208 |
outputs=[endpoints_state]
|
209 |
)
|
210 |
refresh_button.click(
|
@@ -213,7 +213,7 @@ with gr.Blocks(theme=theme, title="KeyLock Operations Dashboard") as demo:
|
|
213 |
outputs=[creator_service_dropdown, creator_status]
|
214 |
).then(
|
215 |
lambda data: data,
|
216 |
-
|
217 |
outputs=[endpoints_state]
|
218 |
)
|
219 |
|
|
|
204 |
outputs=[creator_service_dropdown, creator_status]
|
205 |
).then(
|
206 |
lambda data: data, # Pass the full data to the state
|
207 |
+
js="(data) => data.choices",
|
208 |
outputs=[endpoints_state]
|
209 |
)
|
210 |
refresh_button.click(
|
|
|
213 |
outputs=[creator_service_dropdown, creator_status]
|
214 |
).then(
|
215 |
lambda data: data,
|
216 |
+
js="(data) => data.choices",
|
217 |
outputs=[endpoints_state]
|
218 |
)
|
219 |
|