Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
|
@@ -103,7 +103,7 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="green", secondary_hue="blue"
|
|
| 103 |
# ADICIONADO: Checkbox para o TikTok
|
| 104 |
checkbox_cortar_silencio_tiktok = gr.Checkbox(label="Cortar Silencio", interactive=True)
|
| 105 |
|
| 106 |
-
audio_output = gr.Audio(label="Resultado", type="filepath", interactive=False)
|
| 107 |
with gr.Row():
|
| 108 |
gerar_button = gr.Button(value="Falar")
|
| 109 |
clear_button = gr.ClearButton(components=[audio_input, tiktok_audio_input], value='Limpar Texto')
|
|
@@ -160,7 +160,7 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="green", secondary_hue="blue"
|
|
| 160 |
# ADICIONADO: Checkbox para o TikTok em lote
|
| 161 |
checkbox_cortar_silencio_tiktok_file = gr.Checkbox(label="Cortar Silencio", interactive=True)
|
| 162 |
|
| 163 |
-
audio_output_file = gr.Audio(label="Resultado", type="filepath", interactive=False)
|
| 164 |
with gr.Row():
|
| 165 |
gerar_button_file = gr.Button(value="Falar")
|
| 166 |
clear_button_file = gr.ClearButton(file_input, value='Limpar')
|
|
@@ -217,7 +217,7 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="green", secondary_hue="blue"
|
|
| 217 |
|
| 218 |
# --- Componentes Comuns ---
|
| 219 |
srt_input = gr.File(label="Arquivo SRT", file_types=[".srt"], type="filepath")
|
| 220 |
-
audio_output_srt = gr.Audio(label="Resultado", type="filepath", interactive=False)
|
| 221 |
progress_bar_srt = gr.Progress(track_tqdm=True)
|
| 222 |
# --- ADICIONADO: Componente de Exemplos ---
|
| 223 |
gr.Examples(
|
|
@@ -266,7 +266,7 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="green", secondary_hue="blue"
|
|
| 266 |
audio_list_target.change(lambda x: x, inputs=[audio_list_target], outputs=[audio_list])
|
| 267 |
play_button = gr.Button(value="Tocar")
|
| 268 |
refresh_button = gr.Button(value="Atualizar Lista")
|
| 269 |
-
audio_player = gr.Audio(label="Reproduzir", type="filepath", interactive=False)
|
| 270 |
status_message = gr.Textbox(label="Status", interactive=False, visible=True)
|
| 271 |
|
| 272 |
def update_audio_list():
|
|
|
|
| 103 |
# ADICIONADO: Checkbox para o TikTok
|
| 104 |
checkbox_cortar_silencio_tiktok = gr.Checkbox(label="Cortar Silencio", interactive=True)
|
| 105 |
|
| 106 |
+
audio_output = gr.Audio(label="Resultado", type="filepath", interactive=False, show_download_button=True)
|
| 107 |
with gr.Row():
|
| 108 |
gerar_button = gr.Button(value="Falar")
|
| 109 |
clear_button = gr.ClearButton(components=[audio_input, tiktok_audio_input], value='Limpar Texto')
|
|
|
|
| 160 |
# ADICIONADO: Checkbox para o TikTok em lote
|
| 161 |
checkbox_cortar_silencio_tiktok_file = gr.Checkbox(label="Cortar Silencio", interactive=True)
|
| 162 |
|
| 163 |
+
audio_output_file = gr.Audio(label="Resultado", type="filepath", interactive=False, show_download_button=True)
|
| 164 |
with gr.Row():
|
| 165 |
gerar_button_file = gr.Button(value="Falar")
|
| 166 |
clear_button_file = gr.ClearButton(file_input, value='Limpar')
|
|
|
|
| 217 |
|
| 218 |
# --- Componentes Comuns ---
|
| 219 |
srt_input = gr.File(label="Arquivo SRT", file_types=[".srt"], type="filepath")
|
| 220 |
+
audio_output_srt = gr.Audio(label="Resultado", type="filepath", interactive=False, show_download_button=True)
|
| 221 |
progress_bar_srt = gr.Progress(track_tqdm=True)
|
| 222 |
# --- ADICIONADO: Componente de Exemplos ---
|
| 223 |
gr.Examples(
|
|
|
|
| 266 |
audio_list_target.change(lambda x: x, inputs=[audio_list_target], outputs=[audio_list])
|
| 267 |
play_button = gr.Button(value="Tocar")
|
| 268 |
refresh_button = gr.Button(value="Atualizar Lista")
|
| 269 |
+
audio_player = gr.Audio(label="Reproduzir", type="filepath", interactive=False, show_download_button=True)
|
| 270 |
status_message = gr.Textbox(label="Status", interactive=False, visible=True)
|
| 271 |
|
| 272 |
def update_audio_list():
|