Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -36,6 +36,7 @@ def respond_to_question_llama(transcript, question):
|
|
36 |
def audio_transcribe(inputs):
|
37 |
if inputs is None:
|
38 |
raise gr.Error("No audio file submitted! Please upload or record an audio file before submitting your request.")
|
|
|
39 |
|
40 |
text = pipe(inputs, batch_size=BATCH_SIZE, return_timestamps=True)['text']
|
41 |
|
|
|
36 |
def audio_transcribe(inputs):
|
37 |
if inputs is None:
|
38 |
raise gr.Error("No audio file submitted! Please upload or record an audio file before submitting your request.")
|
39 |
+
return
|
40 |
|
41 |
text = pipe(inputs, batch_size=BATCH_SIZE, return_timestamps=True)['text']
|
42 |
|