Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -886,7 +886,7 @@ def process_video_request(request_id: str, form_data: Dict, file_paths: Dict, ap
|
|
886 |
The main logic for processing a video request, run in a background thread.
|
887 |
Handles file caching and avoids deleting files.
|
888 |
"""
|
889 |
-
global intermediate_files_registry, progress_updates, gemini_file_cache, cache_lock
|
890 |
|
891 |
uploaded_file_references: Dict[str, File] = {}
|
892 |
upload_errors: Dict[str, str] = {}
|
@@ -897,6 +897,7 @@ def process_video_request(request_id: str, form_data: Dict, file_paths: Dict, ap
|
|
897 |
style_description = form_data.get('style_desc', '')
|
898 |
target_duration = form_data.get('duration')
|
899 |
output_filename = form_data.get('output')
|
|
|
900 |
is_preview = form_data.get('is_preview', False)
|
901 |
# --- ADDED: Get the global mute flag ---
|
902 |
mute_all_clips_flag = form_data.get('mute_audio', False)
|
|
|
886 |
The main logic for processing a video request, run in a background thread.
|
887 |
Handles file caching and avoids deleting files.
|
888 |
"""
|
889 |
+
global intermediate_files_registry, progress_updates, gemini_file_cache, cache_lock, MODEL_NAME
|
890 |
|
891 |
uploaded_file_references: Dict[str, File] = {}
|
892 |
upload_errors: Dict[str, str] = {}
|
|
|
897 |
style_description = form_data.get('style_desc', '')
|
898 |
target_duration = form_data.get('duration')
|
899 |
output_filename = form_data.get('output')
|
900 |
+
MODEL_NAME = form_data.get('model', "gemini-2.5-pro-exp-03-25")
|
901 |
is_preview = form_data.get('is_preview', False)
|
902 |
# --- ADDED: Get the global mute flag ---
|
903 |
mute_all_clips_flag = form_data.get('mute_audio', False)
|