Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -73,11 +73,12 @@ def convert_audio(audio_filepath, tmpdir, utt_id):
|
|
73 |
|
74 |
def transcribe(audio_filepath):
|
75 |
|
76 |
-
|
77 |
-
|
78 |
if audio_filepath is None:
|
79 |
raise gr.Error("Please provide some input audio: either upload an audio file or use the microphone. \nIf the microphone already has audio, please wait a few moments for it to upload properly")
|
80 |
-
|
|
|
81 |
utt_id = uuid.uuid4()
|
82 |
with tempfile.TemporaryDirectory() as tmpdir:
|
83 |
converted_audio_filepath, duration = convert_audio(audio_filepath, tmpdir, str(utt_id))
|
|
|
73 |
|
74 |
def transcribe(audio_filepath):
|
75 |
|
76 |
+
print(audio_filepath)
|
77 |
+
time.sleep(2)
|
78 |
if audio_filepath is None:
|
79 |
raise gr.Error("Please provide some input audio: either upload an audio file or use the microphone. \nIf the microphone already has audio, please wait a few moments for it to upload properly")
|
80 |
+
|
81 |
+
|
82 |
utt_id = uuid.uuid4()
|
83 |
with tempfile.TemporaryDirectory() as tmpdir:
|
84 |
converted_audio_filepath, duration = convert_audio(audio_filepath, tmpdir, str(utt_id))
|