Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import torch
|
|
2 |
from transformers import Speech2TextProcessor, Speech2TextForConditionalGeneration
|
3 |
from audio_recorder_streamlit import audio_recorder
|
4 |
import numpy as np
|
5 |
-
|
6 |
def transcribe_audio(audio_bytes):
|
7 |
|
8 |
model = Speech2TextForConditionalGeneration.from_pretrained("facebook/s2t-small-mustc-en-fr-st")
|
|
|
2 |
from transformers import Speech2TextProcessor, Speech2TextForConditionalGeneration
|
3 |
from audio_recorder_streamlit import audio_recorder
|
4 |
import numpy as np
|
5 |
+
import stremlit as st
|
6 |
def transcribe_audio(audio_bytes):
|
7 |
|
8 |
model = Speech2TextForConditionalGeneration.from_pretrained("facebook/s2t-small-mustc-en-fr-st")
|