Spaces:
Sleeping
Sleeping
phamngoctukts
commited on
Commit
•
47eda48
1
Parent(s):
702b99d
Update app.py
Browse files
app.py
CHANGED
@@ -64,7 +64,7 @@ def determine_pause(audio:np.ndarray,sampling_rate:int,state:AppState) -> bool:
|
|
64 |
|
65 |
def process_audio(audio:tuple,state:AppState,image:Image):
|
66 |
if state.recording: # Kiểm tra state.stream:
|
67 |
-
if state.stream:
|
68 |
state.stream = np.concatenate((state.stream, audio[1]))
|
69 |
else:
|
70 |
state.stream = audio[1]
|
|
|
64 |
|
65 |
def process_audio(audio:tuple,state:AppState,image:Image):
|
66 |
if state.recording: # Kiểm tra state.stream:
|
67 |
+
if state.stream is not None:
|
68 |
state.stream = np.concatenate((state.stream, audio[1]))
|
69 |
else:
|
70 |
state.stream = audio[1]
|