Commit
Β·
ed6cecc
1
Parent(s):
3361f15
changed layout
Browse files
app.py
CHANGED
|
@@ -140,22 +140,22 @@ def create_interface():
|
|
| 140 |
## π Upload an audio file for transcription (supports WAV, MP3, FLAC, M4A, etc.)
|
| 141 |
"""
|
| 142 |
)
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
with gr.Column():
|
| 146 |
audio_input = gr.Audio(
|
| 147 |
label="π Upload Audio File",
|
| 148 |
type="filepath",
|
| 149 |
sources=["upload"],
|
| 150 |
)
|
| 151 |
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
|
|
|
| 159 |
|
| 160 |
transcribe_btn.click(
|
| 161 |
transcribe_audio,
|
|
|
|
| 140 |
## π Upload an audio file for transcription (supports WAV, MP3, FLAC, M4A, etc.)
|
| 141 |
"""
|
| 142 |
)
|
| 143 |
+
with gr.Column():
|
| 144 |
+
with gr.Row():
|
|
|
|
| 145 |
audio_input = gr.Audio(
|
| 146 |
label="π Upload Audio File",
|
| 147 |
type="filepath",
|
| 148 |
sources=["upload"],
|
| 149 |
)
|
| 150 |
|
| 151 |
+
file_output = gr.Textbox(
|
| 152 |
+
# label="Transcription Result",
|
| 153 |
+
placeholder="Transcription Result ...",
|
| 154 |
+
show_label=False,
|
| 155 |
+
lines=10,
|
| 156 |
+
interactive=False,
|
| 157 |
+
)
|
| 158 |
+
transcribe_btn = gr.Button("Transcribe", variant="primary", size="lg")
|
| 159 |
|
| 160 |
transcribe_btn.click(
|
| 161 |
transcribe_audio,
|