Spaces:
Build error
Build error
ahmedghani
commited on
Commit
β’
48a1732
1
Parent(s):
fff4c94
big fix in video to audio conversion
Browse files- app.py +1 -1
- video_convertor.py +1 -1
app.py
CHANGED
@@ -31,7 +31,7 @@ demo = gr.Blocks(css=css, title="Video Watermark Remover")
|
|
31 |
with demo:
|
32 |
with gr.Tab("Video Watermark Remover"):
|
33 |
gr.Markdown("""
|
34 |
-
# <center>π₯ Video Watermark Remover</center>
|
35 |
""")
|
36 |
with gr.Row():
|
37 |
with gr.Column():
|
|
|
31 |
with demo:
|
32 |
with gr.Tab("Video Watermark Remover"):
|
33 |
gr.Markdown("""
|
34 |
+
# <center>π₯ Video Watermark Remover (Slow)</center>
|
35 |
""")
|
36 |
with gr.Row():
|
37 |
with gr.Column():
|
video_convertor.py
CHANGED
@@ -41,7 +41,7 @@ class VideoConverter:
|
|
41 |
raise Exception("No audio stream found in the input file")
|
42 |
|
43 |
try:
|
44 |
-
audio_segment = AudioSegment.from_file(self.input_file, self.audio.codec)
|
45 |
audio_segment.export(output_file, format=format.lower())
|
46 |
print(f"Audio converted to {format} format successfully!")
|
47 |
return output_file
|
|
|
41 |
raise Exception("No audio stream found in the input file")
|
42 |
|
43 |
try:
|
44 |
+
audio_segment = AudioSegment.from_file(self.input_file, self.video.audio.codec)
|
45 |
audio_segment.export(output_file, format=format.lower())
|
46 |
print(f"Audio converted to {format} format successfully!")
|
47 |
return output_file
|