RobCaamano commited on
Commit
bbede81
·
1 Parent(s): 5348339

Delete UI.py

Browse files
Files changed (1) hide show
  1. UI.py +0 -25
UI.py DELETED
@@ -1,25 +0,0 @@
1
- import gradio as gr
2
- from main import main as process_video
3
-
4
- def run_pipeline(youtube_url):
5
- # Run the main processing function from your script
6
- # This function should save the final video in the '/translated/' directory
7
- process_video(youtube_url)
8
-
9
- # Construct the path to the final video
10
- # Assuming the video is named 'final_video.mp4' and stored in '/translated/'
11
- final_video_path = './translated/final_video.mp4'
12
-
13
- # Return the path for Gradio to display
14
- return final_video_path
15
-
16
- iface = gr.Interface(
17
- fn=run_pipeline,
18
- inputs=gr.Textbox(lines=2, placeholder="Enter YouTube Video URL here..."),
19
- outputs=gr.Video(),
20
- title="YouTube Video Processing",
21
- description="Enter a YouTube URL to process the video through transcription, translation, and more."
22
- )
23
-
24
- if __name__ == "__main__":
25
- iface.launch()