HassenE22 commited on
Commit
074e545
·
verified ·
1 Parent(s): 119c6a3

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. main.py +2 -2
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)