Spaces:
Running
Running
Yaron Koresh
commited on
Update app.py
Browse files
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)
|
|
|
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 = "\""
|