Update app.py
Browse files
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 |
-
#
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
|
|
|
|
|
|
| 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:
|