Spaces:
Sleeping
Sleeping
VenkateshRoshan
commited on
Commit
·
9a3f61d
1
Parent(s):
00e87f4
Initial Commit
Browse files
app.py
CHANGED
@@ -100,7 +100,7 @@ model_id = "openai/whisper-large-v3"
|
|
100 |
client = InferenceClient(model_id)
|
101 |
pipe = pipeline("automatic-speech-recognition", model=model_id) #, device=device)
|
102 |
|
103 |
-
def transcribe(inputs,
|
104 |
start = time.time()
|
105 |
if inputs is None:
|
106 |
raise gr.Error("No audio file submitted! Please upload or record an audio file before submitting your request.")
|
|
|
100 |
client = InferenceClient(model_id)
|
101 |
pipe = pipeline("automatic-speech-recognition", model=model_id) #, device=device)
|
102 |
|
103 |
+
def transcribe(inputs, use_api):
|
104 |
start = time.time()
|
105 |
if inputs is None:
|
106 |
raise gr.Error("No audio file submitted! Please upload or record an audio file before submitting your request.")
|