Update app.py
Browse files
app.py
CHANGED
|
@@ -2,6 +2,7 @@ import gradio as gr
|
|
| 2 |
import time
|
| 3 |
|
| 4 |
from transformers import pipeline
|
|
|
|
| 5 |
# Define the transcription function
|
| 6 |
def transcribe(audio_path, state):
|
| 7 |
try:
|
|
|
|
| 2 |
import time
|
| 3 |
|
| 4 |
from transformers import pipeline
|
| 5 |
+
p = pipeline("automatic-speech-recognition")
|
| 6 |
# Define the transcription function
|
| 7 |
def transcribe(audio_path, state):
|
| 8 |
try:
|