jhansss commited on
Commit
651aefd
·
2 Parent(s): 50bb787 f474b58

Merge branch 'refactor' into hf

Browse files
Files changed (1) hide show
  1. interface.py +5 -2
interface.py CHANGED
@@ -51,7 +51,10 @@ class GradioInterface:
51
  label="Interaction Log", lines=3, interactive=False
52
  )
53
  audio_output = gr.Audio(
54
- label="Character's Response", type="filepath", autoplay=True
 
 
 
55
  )
56
 
57
  with gr.Row():
@@ -211,7 +214,7 @@ class GradioInterface:
211
 
212
  def run_pipeline(self, audio_path):
213
  if not audio_path:
214
- return gr.update(value=""), gr.update(value="")
215
  tmp_file = f"audio_{int(time.time())}_{uuid.uuid4().hex[:8]}.wav"
216
  self.results = self.pipeline.run(
217
  audio_path,
 
51
  label="Interaction Log", lines=3, interactive=False
52
  )
53
  audio_output = gr.Audio(
54
+ label="Character's Response",
55
+ type="filepath",
56
+ autoplay=True,
57
+ interactive=False,
58
  )
59
 
60
  with gr.Row():
 
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,