Spaces:
Sleeping
Sleeping
fix file input (#1)
Browse files- fix file input (c132afafd4a7033866ff67e412183065bd08a5f4)
Co-authored-by: Zineb Senane <ZinebSN@users.noreply.huggingface.co>
app.py
CHANGED
@@ -9,7 +9,7 @@ def transcribe(audio=None, file=None):
|
|
9 |
elif audio is not None:
|
10 |
input=audio
|
11 |
elif file is not None:
|
12 |
-
|
13 |
text = pipe(input)["text"]
|
14 |
return text
|
15 |
|
|
|
9 |
elif audio is not None:
|
10 |
input=audio
|
11 |
elif file is not None:
|
12 |
+
input=file
|
13 |
text = pipe(input)["text"]
|
14 |
return text
|
15 |
|