Update app.py
Browse files
app.py
CHANGED
|
@@ -4,6 +4,7 @@ import os
|
|
| 4 |
import requests
|
| 5 |
|
| 6 |
def process_video(audio_file, video_file):
|
|
|
|
| 7 |
# Unpack the audio and video file paths
|
| 8 |
audio_path = audio_file[1] if isinstance(audio_file, tuple) else audio_file
|
| 9 |
video_path = video_file if isinstance(video_file, str) else video_file.name
|
|
@@ -48,8 +49,8 @@ with gr.Blocks() as iface:
|
|
| 48 |
gr.Markdown("Upload an audio file and a video file to process the video based on the audio input.")
|
| 49 |
|
| 50 |
with gr.Row():
|
| 51 |
-
audio_input = gr.Audio(label="Input Audio"
|
| 52 |
-
video_input = gr.Video(label="Input Video"
|
| 53 |
|
| 54 |
with gr.Row():
|
| 55 |
process_button = gr.Button("Process Video")
|
|
|
|
| 4 |
import requests
|
| 5 |
|
| 6 |
def process_video(audio_file, video_file):
|
| 7 |
+
print(gradio.__version__)
|
| 8 |
# Unpack the audio and video file paths
|
| 9 |
audio_path = audio_file[1] if isinstance(audio_file, tuple) else audio_file
|
| 10 |
video_path = video_file if isinstance(video_file, str) else video_file.name
|
|
|
|
| 49 |
gr.Markdown("Upload an audio file and a video file to process the video based on the audio input.")
|
| 50 |
|
| 51 |
with gr.Row():
|
| 52 |
+
audio_input = gr.Audio(label="Input Audio")
|
| 53 |
+
video_input = gr.Video(label="Input Video")
|
| 54 |
|
| 55 |
with gr.Row():
|
| 56 |
process_button = gr.Button("Process Video")
|