Update app.py
Browse files
app.py
CHANGED
|
@@ -6,6 +6,17 @@ import os
|
|
| 6 |
import imageio
|
| 7 |
from api.ltx_server import video_generation_service
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
# --- FUNÇÕES DE AJUDA PARA A UI ---
|
| 10 |
# ... (calculate_new_dimensions e handle_media_upload_for_dims permanecem as mesmas) ...
|
| 11 |
TARGET_FIXED_SIDE = 768
|
|
|
|
| 6 |
import imageio
|
| 7 |
from api.ltx_server import video_generation_service
|
| 8 |
|
| 9 |
+
|
| 10 |
+
from huggingface_hub import logging
|
| 11 |
+
|
| 12 |
+
huggingface_hub.utils.logging.enable_propagation
|
| 13 |
+
logging.set_verbosity_error()
|
| 14 |
+
logging.set_verbosity_warning()
|
| 15 |
+
logging.set_verbosity_info()
|
| 16 |
+
logging.set_verbosity_debug()
|
| 17 |
+
|
| 18 |
+
enable_progress_bars()
|
| 19 |
+
|
| 20 |
# --- FUNÇÕES DE AJUDA PARA A UI ---
|
| 21 |
# ... (calculate_new_dimensions e handle_media_upload_for_dims permanecem as mesmas) ...
|
| 22 |
TARGET_FIXED_SIDE = 768
|