Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -66,15 +66,19 @@ def process_audio(audio):
|
|
66 |
# Выкарыстанне gr.Blocks для стварэння інтэрфейсу з вертыкальным размяшчэннем
|
67 |
with gr.Blocks() as demo:
|
68 |
gr.Markdown("# Транскрыпцыя аўдыя для беларускай мовы")
|
69 |
-
gr.Markdown("
|
|
|
|
|
|
|
|
|
70 |
|
71 |
audio_input = gr.Audio(type="filepath", label="Аўдыёфайл")
|
72 |
|
73 |
-
|
74 |
transcript_output = gr.Textbox(label="Транскрыпцыя", lines=10)
|
75 |
file_output = gr.File(label="SRT-файл")
|
76 |
|
77 |
-
|
78 |
btn.click(process_audio, inputs=audio_input, outputs=[transcript_output, file_output])
|
79 |
|
80 |
demo.launch()
|
|
|
66 |
# Выкарыстанне gr.Blocks для стварэння інтэрфейсу з вертыкальным размяшчэннем
|
67 |
with gr.Blocks() as demo:
|
68 |
gr.Markdown("# Транскрыпцыя аўдыя для беларускай мовы")
|
69 |
+
gr.Markdown("""
|
70 |
+
## Загрузіце аўдыёфайл, і субтытры будуць аўтаматычна згенераваны разам з файлам субтытраў.
|
71 |
+
[Далучайцеся да беларускаймоўнай суполкі ў ТГ](https://t.me/belarusai)
|
72 |
+
**Падтрымаць праект:** [Buy me a coffee](https://buymeacoffee.com/tuteishygpt)
|
73 |
+
""")
|
74 |
|
75 |
audio_input = gr.Audio(type="filepath", label="Аўдыёфайл")
|
76 |
|
77 |
+
btn = gr.Button("Апрацаваць")
|
78 |
transcript_output = gr.Textbox(label="Транскрыпцыя", lines=10)
|
79 |
file_output = gr.File(label="SRT-файл")
|
80 |
|
81 |
+
|
82 |
btn.click(process_audio, inputs=audio_input, outputs=[transcript_output, file_output])
|
83 |
|
84 |
demo.launch()
|