Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,9 @@ from autosub import GOOGLE_SPEECH_API_KEY
|
|
5 |
import soundfile as sf
|
6 |
import io
|
7 |
|
|
|
|
|
|
|
8 |
|
9 |
seg = Segmenter(ffmpeg_path="ffmpeg",model_path="keras_speech_music_noise_cnn.hdf5" , device="cpu",vad_type="vad")
|
10 |
|
@@ -52,8 +55,9 @@ interface = gr.Interface(
|
|
52 |
fn=transcribe_audio,
|
53 |
inputs=gr.Audio(type="filepath"), # Removed 'source="microphone"'
|
54 |
outputs="text",
|
55 |
-
title="Audio Transcription",
|
56 |
-
description="Upload an audio file or record audio to get the transcription."
|
|
|
57 |
)
|
58 |
|
59 |
# Launch the Gradio app
|
|
|
5 |
import soundfile as sf
|
6 |
import io
|
7 |
|
8 |
+
css = """
|
9 |
+
body { direction: rtl; text-align: right; }
|
10 |
+
"""
|
11 |
|
12 |
seg = Segmenter(ffmpeg_path="ffmpeg",model_path="keras_speech_music_noise_cnn.hdf5" , device="cpu",vad_type="vad")
|
13 |
|
|
|
55 |
fn=transcribe_audio,
|
56 |
inputs=gr.Audio(type="filepath"), # Removed 'source="microphone"'
|
57 |
outputs="text",
|
58 |
+
title="Persian Audio Transcription",
|
59 |
+
description="Upload an audio file or record audio to get the transcription.",
|
60 |
+
css=css
|
61 |
)
|
62 |
|
63 |
# Launch the Gradio app
|