artificialguybr commited on
Commit
b91eb13
1 Parent(s): fe90f16

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -25,9 +25,9 @@ def process_video(radio, video, language, use_wav2lip):
25
 
26
  # Componentes Gradio
27
  video = gr.Video()
28
- radio = gr.Radio(["Upload", "Record"], value="Upload", show_label=False)
29
- dropdown = gr.Dropdown(choices=["English", "Spanish", "French", "German", "Italian", "Portuguese", "Polish", "Turkish", "Russian", "Dutch", "Czech", "Arabic", "Chinese (Simplified)"], label="Target Language for Dubbing", value="Spanish")
30
- checkbox = gr.Checkbox(label="Video has a close-up face. Use Wav2lip.", value=False)
31
 
32
  # Interface Gradio
33
  iface = gr.Interface(
@@ -35,8 +35,8 @@ iface = gr.Interface(
35
  inputs=[radio, video, dropdown, checkbox],
36
  outputs=gr.Video(),
37
  live=False,
38
- title="AI Video Dubbing",
39
- description="This tool was developed by [@artificialguybr](https://twitter.com/artificialguybr) using entirely open-source tools. Special thanks to Hugging Face for the GPU support. Thanks [@yeswondwer](https://twitter.com/@yeswondwerr) for original code. Test the [Video Transcription and Translate](https://huggingface.co/spaces/artificialguybr/VIDEO-TRANSLATION-TRANSCRIPTION) space!",
40
  allow_flagging=False
41
  )
42
 
@@ -46,14 +46,14 @@ with gr.Blocks() as demo:
46
  radio.change(swap, inputs=[radio], outputs=[video])
47
 
48
  gr.Markdown("""
49
- **Note:**
50
- - Video limit is 1 minute. It will dub all people using just one voice.
51
- - Generation may take up to 5 minutes.
52
- - By using this demo you agree to the terms of the Coqui Public Model License at https://coqui.ai/cpml
53
- - The tool uses open-source models for all models. It's an alpha version.
54
- - Quality can be improved but would require more processing time per video. For scalability and hardware limitations, speed was chosen, not just quality.
55
- - If you need more than 1 minute, duplicate the Space and change the limit on app.py.
56
- - If you incorrectly mark the 'Video has a close-up face' checkbox, the dubbing may not work as expected.
57
  """)
58
 
59
  demo.queue
 
25
 
26
  # Componentes Gradio
27
  video = gr.Video()
28
+ radio = gr.Radio(["Upload", "Gravar"], value="Upload", show_label=False)
29
+ dropdown = gr.Dropdown(choices=["Inglês", "Espanhol", "Francês", "Alemão", "Italiano", "Português", "Polonês", "Turco", "Russo", "Holandês", "Tcheco", "Árabe", "Chinês (Simplificado)"], label="Idioma de Destino para Dublagem", value="Espanhol")
30
+ checkbox = gr.Checkbox(label="O vídeo possui um close-up do rosto. Use o Wav2lip.", value=False)
31
 
32
  # Interface Gradio
33
  iface = gr.Interface(
 
35
  inputs=[radio, video, dropdown, checkbox],
36
  outputs=gr.Video(),
37
  live=False,
38
+ title="Dublagem de Vídeo com AI",
39
+ description="Esta ferramenta foi desenvolvida por [@artificialguybr](https://twitter.com/artificialguybr) utilizando exclusivamente ferramentas de código aberto. Um agradecimento especial à Hugging Face pelo suporte de GPU. Agradecimentos a [@yeswondwer](https://twitter.com/@yeswondwerr) pelo código original. Teste o espaço [Video Transcription and Translate](https://huggingface.co/spaces/artificialguybr/VIDEO-TRANSLATION-TRANSCRIPTION)!",
40
  allow_flagging=False
41
  )
42
 
 
46
  radio.change(swap, inputs=[radio], outputs=[video])
47
 
48
  gr.Markdown("""
49
+ **Nota:**
50
+ - O limite de vídeo é de 1 minuto. Ele dublará todas as pessoas usando apenas uma voz.
51
+ - A geração pode levar até 5 minutos.
52
+ - Ao usar este demo, você concorda com os termos da Licença de Modelo Público Coqui em https://coqui.ai/cpml
53
+ - A ferramenta utiliza modelos de código aberto para todos os modelos. É uma versão alpha.
54
+ - A qualidade pode ser melhorada, mas exigiria mais tempo de processamento por vídeo. Para escalabilidade e limitações de hardware, a velocidade foi escolhida, não apenas a qualidade.
55
+ - Se você precisar de mais de 1 minuto, duplique o Espaço e altere o limite em app.py.
56
+ - Se você marcar incorretamente a opção 'O vídeo tem um close-up do rosto', a dublagem pode não funcionar como esperado.
57
  """)
58
 
59
  demo.queue