Spaces:
Sleeping
Sleeping
Clear outputs when clearing input audio in interface.py
Browse files- interface.py +1 -1
interface.py
CHANGED
|
@@ -214,7 +214,7 @@ class GradioInterface:
|
|
| 214 |
|
| 215 |
def run_pipeline(self, audio_path):
|
| 216 |
if not audio_path:
|
| 217 |
-
return gr.update(value=
|
| 218 |
tmp_file = f"audio_{int(time.time())}_{uuid.uuid4().hex[:8]}.wav"
|
| 219 |
self.results = self.pipeline.run(
|
| 220 |
audio_path,
|
|
|
|
| 214 |
|
| 215 |
def run_pipeline(self, audio_path):
|
| 216 |
if not audio_path:
|
| 217 |
+
return gr.update(value=None), gr.update(value=None)
|
| 218 |
tmp_file = f"audio_{int(time.time())}_{uuid.uuid4().hex[:8]}.wav"
|
| 219 |
self.results = self.pipeline.run(
|
| 220 |
audio_path,
|