Update app.py
Browse files
app.py
CHANGED
|
@@ -1,13 +1,13 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
import os
|
| 3 |
import subprocess
|
|
|
|
| 4 |
|
| 5 |
def remove_subtitles(video):
|
| 6 |
input_path = video
|
| 7 |
output_path = "output.mp4"
|
| 8 |
cmd = f"python main.py --input_video {input_path} --output_video {output_path}"
|
| 9 |
subprocess.run(cmd, shell=True)
|
| 10 |
-
return output_path
|
| 11 |
|
| 12 |
with gr.Blocks() as demo:
|
| 13 |
gr.Markdown("## 🎬 Video Subtitle Remover (VSR)")
|
|
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
import subprocess
|
| 3 |
+
import os
|
| 4 |
|
| 5 |
def remove_subtitles(video):
|
| 6 |
input_path = video
|
| 7 |
output_path = "output.mp4"
|
| 8 |
cmd = f"python main.py --input_video {input_path} --output_video {output_path}"
|
| 9 |
subprocess.run(cmd, shell=True)
|
| 10 |
+
return output_path, output_path
|
| 11 |
|
| 12 |
with gr.Blocks() as demo:
|
| 13 |
gr.Markdown("## 🎬 Video Subtitle Remover (VSR)")
|