Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -982,6 +982,9 @@ safe_app = safe_workflow.compile()
|
|
| 982 |
|
| 983 |
|
| 984 |
def transcribe_speech(filepath):
|
|
|
|
|
|
|
|
|
|
| 985 |
output = audio_pipe(
|
| 986 |
filepath,
|
| 987 |
max_new_tokens=256,
|
|
|
|
| 982 |
|
| 983 |
|
| 984 |
def transcribe_speech(filepath):
|
| 985 |
+
if filepath is None:
|
| 986 |
+
return "No audio provided"
|
| 987 |
+
|
| 988 |
output = audio_pipe(
|
| 989 |
filepath,
|
| 990 |
max_new_tokens=256,
|