Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,9 @@ footer {
|
|
30 |
def transcribe(input=None, task=DEFAULT_TASK):
|
31 |
print(input)
|
32 |
if input is None: raise gr.Error("Invalid input.")
|
|
|
33 |
output = repo(input, batch_size=BATCH_SIZE, generate_kwargs={"task": task}, return_timestamps=True)["text"]
|
|
|
34 |
return output
|
35 |
|
36 |
def cloud():
|
|
|
30 |
def transcribe(input=None, task=DEFAULT_TASK):
|
31 |
print(input)
|
32 |
if input is None: raise gr.Error("Invalid input.")
|
33 |
+
|
34 |
output = repo(input, batch_size=BATCH_SIZE, generate_kwargs={"task": task}, return_timestamps=True)["text"]
|
35 |
+
|
36 |
return output
|
37 |
|
38 |
def cloud():
|