Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ import nemo.collections.asr as nemo_asr
|
|
2 |
import gradio as gr
|
3 |
import pandas as pd
|
4 |
from pydub import AudioSegment
|
|
|
5 |
|
6 |
asr_model = nemo_asr.models.EncDecCTCModelBPE.from_pretrained(model_name="stt_rw_conformer_ctc_large")
|
7 |
df = pd.read_csv("amasaku_data.tsv",sep='\t')
|
@@ -44,6 +45,7 @@ with gr.Blocks() as demo:
|
|
44 |
with gr.Column():
|
45 |
microphone = gr.Audio(sources="microphone", type="filepath", label="Microphone")
|
46 |
print("microphone source: ",microphone)
|
|
|
47 |
uploaded_audio = gr.Audio(label="Upload Audio File", type="filepath",sources="upload")
|
48 |
print('upload path: ',uploaded_audio)
|
49 |
with gr.Column():
|
|
|
2 |
import gradio as gr
|
3 |
import pandas as pd
|
4 |
from pydub import AudioSegment
|
5 |
+
import os
|
6 |
|
7 |
asr_model = nemo_asr.models.EncDecCTCModelBPE.from_pretrained(model_name="stt_rw_conformer_ctc_large")
|
8 |
df = pd.read_csv("amasaku_data.tsv",sep='\t')
|
|
|
45 |
with gr.Column():
|
46 |
microphone = gr.Audio(sources="microphone", type="filepath", label="Microphone")
|
47 |
print("microphone source: ",microphone)
|
48 |
+
print(os.listdir("/tmp"))
|
49 |
uploaded_audio = gr.Audio(label="Upload Audio File", type="filepath",sources="upload")
|
50 |
print('upload path: ',uploaded_audio)
|
51 |
with gr.Column():
|