Update ui/ui_components.py
Browse files- ui/ui_components.py +7 -6
ui/ui_components.py
CHANGED
|
@@ -255,11 +255,12 @@ def process_with_bg(video, method, style, custom, gen_path, two_stage, chroma, k
|
|
| 255 |
outputs=[quality_info]
|
| 256 |
)
|
| 257 |
|
| 258 |
-
#
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
|
|
|
| 264 |
|
| 265 |
return demo
|
|
|
|
| 255 |
outputs=[quality_info]
|
| 256 |
)
|
| 257 |
|
| 258 |
+
# COMMENTED OUT to prevent cv2 import on startup - fixes WebAssembly error
|
| 259 |
+
# Users can still get preview by changing the dropdown selection
|
| 260 |
+
# demo.load(
|
| 261 |
+
# cb_preset_bg_preview,
|
| 262 |
+
# inputs=[bg_style],
|
| 263 |
+
# outputs=[preset_preview]
|
| 264 |
+
# )
|
| 265 |
|
| 266 |
return demo
|