Pendrokar commited on
Commit
317535b
β€’
1 Parent(s): e0319b0

voice model sample MORE fix

Browse files
Files changed (1) hide show
  1. gr_client.py +9 -0
gr_client.py CHANGED
@@ -550,6 +550,15 @@ class BlocksDemo:
550
  ]
551
 
552
  def set_default_audio(self, voice_id):
 
 
 
 
 
 
 
 
 
553
  return self.models_path + voice_id + '.wav'
554
 
555
  if __name__ == "__main__":
 
550
  ]
551
 
552
  def set_default_audio(self, voice_id):
553
+ if voice_id == 'more':
554
+ return None
555
+
556
+ if __name__ == "__main__":
557
+ return client.predict(
558
+ voice_id,
559
+ api_name="/set_default_audio"
560
+ )
561
+
562
  return self.models_path + voice_id + '.wav'
563
 
564
  if __name__ == "__main__":