Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files1014 unmodified lines10151016101710181019102010211014 unmodified linesval = re.sub(r'<[^>]+>', '', val) # Delete html and lorasprint("Removed LoRA written in the prompt")if key in ["prompt", "neg_prompt"]:val = re.sub(r'\s+', ' ', re.sub(r',+', ',', val)).strip()if key in ["Steps", "width", "height", "Seed", "Hires steps", "Image resolution"]:val = int(val)if key == "FreeU":1014 unmodified lines1015101610171018101910201021102210231014 unmodified linesval = re.sub(r'<[^>]+>', '', val) # Delete html and lorasprint("Removed LoRA written in the prompt")if key in ["prompt", "neg_prompt"]:val = re.sub(r"[^\S\r\n]+", " ", re.sub(r"[ \t]*,[ \t,]*", ", ", val)).strip()if key in ["Steps", "width", "height", "Seed", "Hires steps", "Image resolution"]:val = int(val)if key == "FreeU":
app.py+3-1