seawolf2357 commited on
Commit
1e59355
·
verified ·
1 Parent(s): 6a9e2b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -219,11 +219,11 @@ with gr.Blocks() as demo:
219
  async def update_camera_motions():
220
  try:
221
  motions = await get_camera_motions()
222
- return {camera_motion: gr.update(choices=motions), img_camera_motion: gr.update(choices=motions)}
223
  except Exception as e:
224
  print(f"Error updating camera motions: {str(e)}")
225
- return {camera_motion: gr.update(choices=[]), img_camera_motion: gr.update(choices=[])}
226
 
227
- demo.load(update_camera_motions)
228
 
229
  demo.queue().launch(debug=True)
 
219
  async def update_camera_motions():
220
  try:
221
  motions = await get_camera_motions()
222
+ return gr.update(choices=motions), gr.update(choices=motions)
223
  except Exception as e:
224
  print(f"Error updating camera motions: {str(e)}")
225
+ return gr.update(choices=[]), gr.update(choices=[])
226
 
227
+ demo.load(update_camera_motions, outputs=[camera_motion, img_camera_motion])
228
 
229
  demo.queue().launch(debug=True)