boris commited on
Commit
bf25d32
1 Parent(s): 7b58e88

feat(text): more char

Browse files
Files changed (1) hide show
  1. dalle_mini/text.py +1 -1
dalle_mini/text.py CHANGED
@@ -95,7 +95,7 @@ def fix_html(t):
95
 
96
 
97
  def replace_punctuation_with_commas(t):
98
- return re.sub("([()[\].,|:;?!=+~\-\/])", ",", t)
99
 
100
 
101
  def simplify_quotes(t):
 
95
 
96
 
97
  def replace_punctuation_with_commas(t):
98
+ return re.sub("[()[\].,|:;?!=+~\-\/{}]", ",", t)
99
 
100
 
101
  def simplify_quotes(t):