Spaces:
Runtime error
Runtime error
playing with whisper
Browse files
app.py
CHANGED
|
@@ -2,9 +2,9 @@ import streamlit as st
|
|
| 2 |
# Load model directly
|
| 3 |
from transformers import pipeline
|
| 4 |
|
| 5 |
-
|
| 6 |
|
| 7 |
-
|
| 8 |
-
if
|
| 9 |
-
|
| 10 |
-
st.write(
|
|
|
|
| 2 |
# Load model directly
|
| 3 |
from transformers import pipeline
|
| 4 |
|
| 5 |
+
pipe = pipeline("automatic-speech-recognition", model="openai/whisper-large-v3")
|
| 6 |
|
| 7 |
+
uploaded_file = st.file_uploader("Choose a file")
|
| 8 |
+
if uploaded_file is not None:
|
| 9 |
+
result = pipe(uploaded_file)
|
| 10 |
+
st.write(result)
|