Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import soundfile as sf
|
|
6 |
import io
|
7 |
|
8 |
css = """
|
9 |
-
textarea { direction: rtl; text-align: right; font-family: Calibri, sans-serif;font-size:
|
10 |
"""
|
11 |
|
12 |
seg = Segmenter(ffmpeg_path="ffmpeg",model_path="keras_speech_music_noise_cnn.hdf5" , device="cpu",vad_type="vad")
|
@@ -54,7 +54,7 @@ def transcribe_audio(audio_file):
|
|
54 |
interface = gr.Interface(
|
55 |
fn=transcribe_audio,
|
56 |
inputs=gr.Audio(type="filepath"), # Removed 'source="microphone"'
|
57 |
-
outputs=gr.Textbox(label="Transcription", elem_id="output-text"),
|
58 |
title="Persian Audio Transcription",
|
59 |
description="Upload an audio file or record audio to get the transcription.",
|
60 |
css=css
|
|
|
6 |
import io
|
7 |
|
8 |
css = """
|
9 |
+
textarea { direction: rtl; text-align: right; font-family: Calibri, sans-serif; font-size: 16px;}
|
10 |
"""
|
11 |
|
12 |
seg = Segmenter(ffmpeg_path="ffmpeg",model_path="keras_speech_music_noise_cnn.hdf5" , device="cpu",vad_type="vad")
|
|
|
54 |
interface = gr.Interface(
|
55 |
fn=transcribe_audio,
|
56 |
inputs=gr.Audio(type="filepath"), # Removed 'source="microphone"'
|
57 |
+
outputs=gr.Textbox(label="Transcription", elem_id="output-text",interactive=True),
|
58 |
title="Persian Audio Transcription",
|
59 |
description="Upload an audio file or record audio to get the transcription.",
|
60 |
css=css
|