Pendrokar commited on
Commit
4f0aefc
·
1 Parent(s): fcff623

Parler Multi reformatted version

Browse files
Files changed (1) hide show
  1. app/models.py +19 -4
app/models.py CHANGED
@@ -52,6 +52,7 @@ AVAILABLE_MODELS = {
52
  # 'parler-tts/parler-tts-expresso': 'parler-tts/parler-tts-expresso', # 4.29 4.32 4.36.1 4.42.0
53
  # Parler Mini Multi v1.1
54
  'PHBJT/multi_parler_tts': 'PHBJT/multi_parler_tts',
 
55
 
56
  # # Microsoft Edge TTS
57
  # 'innoai/Edge-TTS-Text-to-Speech': 'innoai/Edge-TTS-Text-to-Speech', # API disabled
@@ -266,7 +267,17 @@ HF_SPACES = {
266
  'name': 'Parler Mini Multi v1.1',
267
  'function': '/gen_tts',
268
  'text_param_index': 'text',
269
- 'return_audio_index': 1,
 
 
 
 
 
 
 
 
 
 
270
  'is_zero_gpu_space': True,
271
  'series': 'Parler',
272
  },
@@ -647,8 +658,12 @@ OVERRIDE_INPUTS = {
647
  },
648
  # multi-lang parler mini 1.1
649
  'PHBJT/multi_parler_tts': {
650
- 1: 'a ' + DEFAULT_VOICE_PROMPT, #description / voice prompt
651
- 2: False, #do_format
 
 
 
 
652
  },
653
  'parler-tts/parler-tts-expresso': {
654
  1: 'Elisabeth; Elisabeth\'s ' + DEFAULT_VOICE_PROMPT, #description / voice prompt
@@ -951,7 +966,7 @@ closed_source = [
951
  ]
952
 
953
  # top five models in order to always have one of them picked and scrutinized
954
- top_five = ['IndexTeam/IndexTTS']
955
 
956
  # prioritize low vote models
957
  sql = 'SELECT name FROM model WHERE (upvote + downvote) < 750 ORDER BY (upvote + downvote) ASC'
 
52
  # 'parler-tts/parler-tts-expresso': 'parler-tts/parler-tts-expresso', # 4.29 4.32 4.36.1 4.42.0
53
  # Parler Mini Multi v1.1
54
  'PHBJT/multi_parler_tts': 'PHBJT/multi_parler_tts',
55
+ 'PHBJT/multi_parler_tts/reformatted': 'PHBJT/multi_parler_tts', # reformatted description using Gemma 2b
56
 
57
  # # Microsoft Edge TTS
58
  # 'innoai/Edge-TTS-Text-to-Speech': 'innoai/Edge-TTS-Text-to-Speech', # API disabled
 
267
  'name': 'Parler Mini Multi v1.1',
268
  'function': '/gen_tts',
269
  'text_param_index': 'text',
270
+ 'return_audio_index': 1, # 0 is the reformatted text
271
+ 'is_zero_gpu_space': True,
272
+ 'series': 'Parler',
273
+ },
274
+
275
+ # Parler Mini trained on Expresso dataset, reformats description using Gemma 2b
276
+ 'PHBJT/multi_parler_tts/reformatted': {
277
+ 'name': 'Parler Mini Multi v1.1r',
278
+ 'function': '/gen_tts',
279
+ 'text_param_index': 'text',
280
+ 'return_audio_index': 1, # 0 is the reformatted text
281
  'is_zero_gpu_space': True,
282
  'series': 'Parler',
283
  },
 
658
  },
659
  # multi-lang parler mini 1.1
660
  'PHBJT/multi_parler_tts': {
661
+ 'description': 'a ' + DEFAULT_VOICE_PROMPT, #description / voice prompt
662
+ 'do_format': False, # Reformat description using Gemma 2b
663
+ },
664
+ 'PHBJT/multi_parler_tts/reformatted': {
665
+ 'description': 'a ' + DEFAULT_VOICE_PROMPT, #description / voice prompt
666
+ 'do_format': True, # Reformat description using Gemma 2b
667
  },
668
  'parler-tts/parler-tts-expresso': {
669
  1: 'Elisabeth; Elisabeth\'s ' + DEFAULT_VOICE_PROMPT, #description / voice prompt
 
966
  ]
967
 
968
  # top five models in order to always have one of them picked and scrutinized
969
+ top_five = ['PHBJT/multi_parler_tts', 'PHBJT/multi_parler_tts/reformatted', 'ResembleAI/Chatterbox']
970
 
971
  # prioritize low vote models
972
  sql = 'SELECT name FROM model WHERE (upvote + downvote) < 750 ORDER BY (upvote + downvote) ASC'