jhansss commited on
Commit
f474b58
·
1 Parent(s): c3cade4

Clear outputs when clearing input audio in interface.py

Browse files
Files changed (1) hide show
  1. 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=""), 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,