Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ def transcribe_audio(audio_file):
|
|
7 |
# Define the Gradio interface
|
8 |
interface = gr.Interface(
|
9 |
fn=transcribe_audio,
|
10 |
-
inputs=gr.Audio(
|
11 |
outputs="text",
|
12 |
title="Audio Transcription",
|
13 |
description="Upload an audio file or record audio to get the transcription."
|
|
|
7 |
# Define the Gradio interface
|
8 |
interface = gr.Interface(
|
9 |
fn=transcribe_audio,
|
10 |
+
inputs=gr.Audio(type="filepath"), # Removed 'source="microphone"'
|
11 |
outputs="text",
|
12 |
title="Audio Transcription",
|
13 |
description="Upload an audio file or record audio to get the transcription."
|