Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
#%cd SoniTranslate
|
2 |
# vc infer pipe 161 np.int
|
3 |
import os
|
|
|
4 |
os.system("pip install -r requirements_colab.txt")
|
5 |
os.system("pip install -r requirements_extra.txt")
|
6 |
|
@@ -660,7 +661,7 @@ with gr.Blocks(theme=theme) as demo:
|
|
660 |
with gr.Row():
|
661 |
with gr.Column():
|
662 |
#video_input = gr.UploadButton("Click to Upload a video", file_types=["video"], file_count="single") #gr.Video() # height=300,width=300
|
663 |
-
video_input = gr.File(label="VIDEO")
|
664 |
#link = gr.HTML()
|
665 |
#video_input.change(submit_file_func, video_input, [video_input, link], show_progress='full')
|
666 |
|
@@ -704,7 +705,7 @@ with gr.Blocks(theme=theme) as demo:
|
|
704 |
with gr.Row():
|
705 |
video_button = gr.Button("TRANSLATE", )
|
706 |
with gr.Row():
|
707 |
-
video_output = gr.outputs.File(label="DOWNLOAD TRANSLATED VIDEO")
|
708 |
|
709 |
line_ = gr.HTML("<hr></h2>")
|
710 |
if os.getenv("YOUR_HF_TOKEN") == None or os.getenv("YOUR_HF_TOKEN") == "":
|
@@ -809,7 +810,7 @@ with gr.Blocks(theme=theme) as demo:
|
|
809 |
with gr.Row():
|
810 |
text_button = gr.Button("TRANSLATE")
|
811 |
with gr.Row():
|
812 |
-
blink_output = gr.outputs.File(label="DOWNLOAD TRANSLATED VIDEO") # gr.Video()
|
813 |
|
814 |
|
815 |
bline_ = gr.HTML("<hr></h2>")
|
|
|
1 |
#%cd SoniTranslate
|
2 |
# vc infer pipe 161 np.int
|
3 |
import os
|
4 |
+
|
5 |
os.system("pip install -r requirements_colab.txt")
|
6 |
os.system("pip install -r requirements_extra.txt")
|
7 |
|
|
|
661 |
with gr.Row():
|
662 |
with gr.Column():
|
663 |
#video_input = gr.UploadButton("Click to Upload a video", file_types=["video"], file_count="single") #gr.Video() # height=300,width=300
|
664 |
+
video_input = gr.Video(label="Submit a video") #gr.File(label="VIDEO")
|
665 |
#link = gr.HTML()
|
666 |
#video_input.change(submit_file_func, video_input, [video_input, link], show_progress='full')
|
667 |
|
|
|
705 |
with gr.Row():
|
706 |
video_button = gr.Button("TRANSLATE", )
|
707 |
with gr.Row():
|
708 |
+
video_output = gr.Video() #gr.outputs.File(label="DOWNLOAD TRANSLATED VIDEO")
|
709 |
|
710 |
line_ = gr.HTML("<hr></h2>")
|
711 |
if os.getenv("YOUR_HF_TOKEN") == None or os.getenv("YOUR_HF_TOKEN") == "":
|
|
|
810 |
with gr.Row():
|
811 |
text_button = gr.Button("TRANSLATE")
|
812 |
with gr.Row():
|
813 |
+
blink_output = gr.Video() #gr.outputs.File(label="DOWNLOAD TRANSLATED VIDEO") # gr.Video()
|
814 |
|
815 |
|
816 |
bline_ = gr.HTML("<hr></h2>")
|