Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ with gr.Blocks() as demo:
|
|
44 |
|
45 |
with gr.Row():
|
46 |
with gr.Column():
|
47 |
-
|
48 |
# print("microphone source: ",microphone)
|
49 |
# print(os.listdir("/tmp"))
|
50 |
uploaded_audio = gr.Audio(label="Upload Audio File", type="filepath",sources="upload")
|
@@ -56,7 +56,7 @@ with gr.Blocks() as demo:
|
|
56 |
|
57 |
transcribe_button.click(
|
58 |
transcribe,
|
59 |
-
[uploaded_audio],
|
60 |
transcription
|
61 |
)
|
62 |
|
|
|
44 |
|
45 |
with gr.Row():
|
46 |
with gr.Column():
|
47 |
+
microphone = gr.Audio(sources="microphone", type="filepath", label="Microphone")
|
48 |
# print("microphone source: ",microphone)
|
49 |
# print(os.listdir("/tmp"))
|
50 |
uploaded_audio = gr.Audio(label="Upload Audio File", type="filepath",sources="upload")
|
|
|
56 |
|
57 |
transcribe_button.click(
|
58 |
transcribe,
|
59 |
+
[microphone, uploaded_audio],
|
60 |
transcription
|
61 |
)
|
62 |
|