1 parent 3fef1e4 commit c3f3162Copy full SHA for c3f3162
1 file changed
packages/app/src/app.tsx
@@ -90,14 +90,6 @@ export function App() {
90
}
91
92
93
- function clearOutputs() {
94
- for (const url of outputUrlsRef.current) {
95
- URL.revokeObjectURL(url);
96
- }
97
- outputUrlsRef.current = [];
98
- setOutputs([]);
99
100
-
101
useEffect(
102
() => () => {
103
runAbortRef.current?.abort();
@@ -138,7 +130,11 @@ export function App() {
138
130
throw new Error("Audio and model files are required");
139
131
140
132
141
- clearOutputs();
133
+ for (const url of outputUrlsRef.current) {
134
+ URL.revokeObjectURL(url);
135
+ }
136
+ outputUrlsRef.current = [];
137
+ setOutputs([]);
142
const startedAt = Date.now();
143
setRunProgress({
144
phase: "preparing",
0 commit comments