Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -65,18 +65,8 @@ SIDEBAR_INFO = f"""
|
|
65 |
|
66 |
@spaces.GPU()
|
67 |
def transcribe(microphone, file_upload):
|
68 |
-
|
69 |
-
if (microphone is not None) and (file_upload is not None):
|
70 |
-
warn_output = (
|
71 |
-
"WARNING: You've uploaded an audio file and used the microphone. "
|
72 |
-
"The recorded file from the microphone will be used and the uploaded audio will be discarded.\n"
|
73 |
-
)
|
74 |
-
|
75 |
-
elif (microphone is None) and (file_upload is None):
|
76 |
-
return "ERROR: You have to either use the microphone or upload an audio file"
|
77 |
-
|
78 |
file = microphone if microphone is not None else file_upload
|
79 |
-
|
80 |
start_time = time.time()
|
81 |
|
82 |
|
|
|
65 |
|
66 |
@spaces.GPU()
|
67 |
def transcribe(microphone, file_upload):
|
68 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
file = microphone if microphone is not None else file_upload
|
|
|
70 |
start_time = time.time()
|
71 |
|
72 |
|