Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -76,11 +76,11 @@ def respond(
|
|
76 |
|
77 |
@spaces.GPU
|
78 |
def transcribe(asr_inputs, task):
|
79 |
-
print("Type: " + str(type(asr_inputs)))
|
80 |
if asr_inputs is None:
|
81 |
raise gr.Error("No audio file submitted! Please upload or record an audio file before submitting your request.")
|
82 |
|
83 |
-
text = asr_pl(asr_inputs, batch_size=
|
84 |
return text
|
85 |
|
86 |
|
|
|
76 |
|
77 |
@spaces.GPU
|
78 |
def transcribe(asr_inputs, task):
|
79 |
+
#print("Type: " + str(type(asr_inputs)))
|
80 |
if asr_inputs is None:
|
81 |
raise gr.Error("No audio file submitted! Please upload or record an audio file before submitting your request.")
|
82 |
|
83 |
+
text = asr_pl(asr_inputs, batch_size=ASR_BATCH_SIZE, generate_kwargs={"task": task}, return_timestamps=True)["text"]
|
84 |
return text
|
85 |
|
86 |
|