Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files
main.py
CHANGED
|
@@ -57,7 +57,7 @@ def save_and_transcribe_audio(recording, filename='recording.wav'):
|
|
| 57 |
|
| 58 |
# Create Gradio interface
|
| 59 |
with gr.Blocks() as demo:
|
| 60 |
-
gr.Markdown("#AI Language Detector")
|
| 61 |
gr.Markdown("## Transcribe audio with OpenAI's Whisper model and use GPT to detect the language from the transcription text")
|
| 62 |
with gr.Row():
|
| 63 |
record_btn = gr.Audio(sources=['microphone'], type='numpy', label='Record Audio')
|
|
@@ -71,4 +71,4 @@ with gr.Blocks() as demo:
|
|
| 71 |
|
| 72 |
# Launch the Gradio app
|
| 73 |
if __name__ == "__main__":
|
| 74 |
-
demo.launch(share=True
|
|
|
|
| 57 |
|
| 58 |
# Create Gradio interface
|
| 59 |
with gr.Blocks() as demo:
|
| 60 |
+
gr.Markdown("# AI Language Detector")
|
| 61 |
gr.Markdown("## Transcribe audio with OpenAI's Whisper model and use GPT to detect the language from the transcription text")
|
| 62 |
with gr.Row():
|
| 63 |
record_btn = gr.Audio(sources=['microphone'], type='numpy', label='Record Audio')
|
|
|
|
| 71 |
|
| 72 |
# Launch the Gradio app
|
| 73 |
if __name__ == "__main__":
|
| 74 |
+
demo.launch(share=True)
|