Bagda commited on
Commit
891d755
·
verified ·
1 Parent(s): 219536e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -0
app.py CHANGED
@@ -7,3 +7,21 @@ def transcribe(audio):
7
 
8
  import gradio as gr
9
  gr.Interface(fn=transcribe, inputs=gr.Audio(type="filepath"), outputs="text").launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
 
8
  import gradio as gr
9
  gr.Interface(fn=transcribe, inputs=gr.Audio(type="filepath"), outputs="text").launch()
10
+
11
+ import gradio as gr
12
+
13
+ def dub_video(video_url):
14
+ # यहाँ आप बैकएंड फंक्शन को कॉल करें, जो वीडियो डाउनलोड करे, ऑडियो निकाले, हिंदी में डब करे और डब्ड वीडियो रिटर्न करे
15
+ # उदाहरण के लिए: processed_video_path = backend_dubbing_function(video_url, "hindi")
16
+ # return processed_video_path
17
+ return "Processed video path will be returned here (replace with actual function call)"
18
+
19
+ demo = gr.Interface(
20
+ fn=dub_video,
21
+ inputs=gr.Textbox(label="Enter video URL"),
22
+ outputs=gr.Video(label="Hindi Dubbed Video"),
23
+ title="Video Dubbing AI (Hindi)",
24
+ description="Enter a video URL to get it dubbed in Hindi."
25
+ )
26
+
27
+ demo.launch()