gnosticdev commited on
Commit
b113e44
·
verified ·
1 Parent(s): 7c121aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -7
app.py CHANGED
@@ -165,13 +165,15 @@ def process_input(text, txt_file, mp3_file, selected_voice, rate, pitch, keyword
165
  final_video_path = combine_audio_video(audio_file, video_clip, music_clip)
166
  if not final_video_path:
167
  raise ValueError("Failed to combine audio and video")
168
- # Subimos a Google Drive
169
- upload_to_google_drive(final_video_path)
170
-
171
- return final_video_path
172
- except Exception as e:
173
- print(f"Error durante el procesamiento: {e}")
174
- return None
 
 
175
 
176
  # Interfaz Gradio
177
  with gr.Blocks() as demo:
 
165
  final_video_path = combine_audio_video(audio_file, video_clip, music_clip)
166
  if not final_video_path:
167
  raise ValueError("Failed to combine audio and video")
168
+ # ID de la carpeta de destino en Google Drive
169
+ FOLDER_ID = "12S6adpanAXjf71pKKGRRPqpzbJa5XEh3" # Reemplaza esto con tu ID de carpeta
170
+
171
+ # Subimos a Google Drive
172
+ video_id = upload_to_google_drive(final_video_path, folder_id=FOLDER_ID)
173
+ if video_id:
174
+ print(f"Video subido a Google Drive con ID: {video_id}")
175
+ else:
176
+ print("Error subiendo el video a Google Drive")
177
 
178
  # Interfaz Gradio
179
  with gr.Blocks() as demo: