Spaces:
Runtime error
Runtime error
Update gradio_demo.py
Browse files- gradio_demo.py +2 -1
gradio_demo.py
CHANGED
@@ -1174,7 +1174,6 @@ with block:
|
|
1174 |
|
1175 |
with gr.Tab("Background", visible=True):
|
1176 |
# empty cache
|
1177 |
-
bg_manager = BackgroundManager()
|
1178 |
mask_mover = MaskMover()
|
1179 |
# with torch.no_grad():
|
1180 |
# # Update the input channels to 12
|
@@ -1392,6 +1391,8 @@ with block:
|
|
1392 |
|
1393 |
# Create an instance of BackgroundManager
|
1394 |
#bg_manager = gr.State(BackgroundManager())
|
|
|
|
|
1395 |
|
1396 |
def update_position_wrapper(background, x_pos, y_pos, scale):
|
1397 |
return bg_manager.update_position(background, x_pos, y_pos, scale)
|
|
|
1174 |
|
1175 |
with gr.Tab("Background", visible=True):
|
1176 |
# empty cache
|
|
|
1177 |
mask_mover = MaskMover()
|
1178 |
# with torch.no_grad():
|
1179 |
# # Update the input channels to 12
|
|
|
1391 |
|
1392 |
# Create an instance of BackgroundManager
|
1393 |
#bg_manager = gr.State(BackgroundManager())
|
1394 |
+
bg_manager = BackgroundManager()
|
1395 |
+
|
1396 |
|
1397 |
def update_position_wrapper(background, x_pos, y_pos, scale):
|
1398 |
return bg_manager.update_position(background, x_pos, y_pos, scale)
|