Yaron Koresh commited on
Commit
4268158
·
verified ·
1 Parent(s): 9c4ac8a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1316,7 +1316,8 @@ def handle_generation(h,w,d):
1316
  d = d if d == "" else summarize(translate(d))
1317
  else:
1318
  d = d if d == "" else translate(d)
1319
- d = re.sub(r"([ \t]){1,}", " ", d).lower().strip()
 
1320
 
1321
  neg = f"Textual, Text, Blurry, Shiny, Smooth, Polished, Low Quality, Worst Quality, Normal Quality, Anime Quality, Movies Quality."
1322
  q = "\""
 
1316
  d = d if d == "" else summarize(translate(d))
1317
  else:
1318
  d = d if d == "" else translate(d)
1319
+ d = re.sub(r"([ \t]){1,}", " ", d)
1320
+ d = re.sub(r"(\. \.)", ".", d).lower().strip()
1321
 
1322
  neg = f"Textual, Text, Blurry, Shiny, Smooth, Polished, Low Quality, Worst Quality, Normal Quality, Anime Quality, Movies Quality."
1323
  q = "\""