Yaron Koresh commited on
Commit
6a56eb5
·
verified ·
1 Parent(s): 05bb0fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -1285,7 +1285,6 @@ def handle_generation(h,w,d):
1285
  d = d if d == "" else translate(d)
1286
  d = re.sub(r"([ \t]){1,}", " ", d)
1287
  d = re.sub(r"(\. \.)", ".", d)
1288
- d = re.sub(r"[,]", ".", d).lower().strip()
1289
 
1290
  neg = f"Textual, Text, Blurry, Distorted, Exceptional, Irregular, Unusual, Shiny, Smoothed, Polished, Low Quality, Worst Quality, Normal Quality, Anime Quality, Paint Quality, Movie Quality."
1291
  q = "\""
@@ -1329,7 +1328,7 @@ if __name__ == "__main__":
1329
  height = gr.Slider(
1330
  label="Height (px)",
1331
  minimum=512,
1332
- maximum=2048,
1333
  step=16,
1334
  value=1024,
1335
  )
@@ -1337,7 +1336,7 @@ if __name__ == "__main__":
1337
  width = gr.Slider(
1338
  label="Width (px)",
1339
  minimum=512,
1340
- maximum=2048,
1341
  step=16,
1342
  value=1024,
1343
  )
 
1285
  d = d if d == "" else translate(d)
1286
  d = re.sub(r"([ \t]){1,}", " ", d)
1287
  d = re.sub(r"(\. \.)", ".", d)
 
1288
 
1289
  neg = f"Textual, Text, Blurry, Distorted, Exceptional, Irregular, Unusual, Shiny, Smoothed, Polished, Low Quality, Worst Quality, Normal Quality, Anime Quality, Paint Quality, Movie Quality."
1290
  q = "\""
 
1328
  height = gr.Slider(
1329
  label="Height (px)",
1330
  minimum=512,
1331
+ maximum=1536,
1332
  step=16,
1333
  value=1024,
1334
  )
 
1336
  width = gr.Slider(
1337
  label="Width (px)",
1338
  minimum=512,
1339
+ maximum=1536,
1340
  step=16,
1341
  value=1024,
1342
  )