mrfakename commited on
Commit
2584cab
·
verified ·
1 Parent(s): 0bebc31

Sync from GitHub repo

Browse files

This Space is synced from the GitHub repo: https://github.com/SWivid/F5-TTS. Please submit contributions to the Space there

Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -357,6 +357,7 @@ def parse_speechtypes_text(gen_text):
357
  try: # if type dict
358
  current_type_dict = json.loads(type_str)
359
  except json.decoder.JSONDecodeError:
 
360
  current_type_dict = {"name": type_str, "seed": -1, "speed": 1.0}
361
 
362
  return segments
 
357
  try: # if type dict
358
  current_type_dict = json.loads(type_str)
359
  except json.decoder.JSONDecodeError:
360
+ type_str = type_str[1:-1] # remove brace {}
361
  current_type_dict = {"name": type_str, "seed": -1, "speed": 1.0}
362
 
363
  return segments