Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,9 +26,9 @@ footer {
|
|
| 26 |
'''
|
| 27 |
|
| 28 |
@spaces.GPU(duration=15)
|
| 29 |
-
def transcribe(
|
| 30 |
-
if
|
| 31 |
-
output = repo(
|
| 32 |
return output
|
| 33 |
|
| 34 |
def cloud():
|
|
|
|
| 26 |
'''
|
| 27 |
|
| 28 |
@spaces.GPU(duration=15)
|
| 29 |
+
def transcribe(input=None, task=DEFAULT_TASK):
|
| 30 |
+
if input is None: raise gr.Error("Invalid input.")
|
| 31 |
+
output = repo(input, batch_size=BATCH_SIZE, generate_kwargs={"task": task}, return_timestamps=True)["text"]
|
| 32 |
return output
|
| 33 |
|
| 34 |
def cloud():
|