Spaces:
Runtime error
Runtime error
Fix state management
Browse files
app.py
CHANGED
|
@@ -27,7 +27,11 @@ def process_audio_file(file):
|
|
| 27 |
|
| 28 |
|
| 29 |
def transcribe(Audio, state=""):
|
| 30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
audio_data = process_audio_file(Audio)
|
| 33 |
|
|
|
|
| 27 |
|
| 28 |
|
| 29 |
def transcribe(Audio, state=""):
|
| 30 |
+
# Grant additional context
|
| 31 |
+
time.sleep(0.64)
|
| 32 |
+
|
| 33 |
+
if state is None:
|
| 34 |
+
state = ""
|
| 35 |
|
| 36 |
audio_data = process_audio_file(Audio)
|
| 37 |
|