Spaces:
Runtime error
Runtime error
Update app.py
Browse files112 unmodified lines113114115116117118119120121122123124125112 unmodified linesif randomize_seed:seed = random.randint(0, 99999)generator = torch.Generator().manual_seed(seed)if style=="3D"image = pipe_3D( prompt = instruction, guidance_scale = 5, num_inference_steps = steps, width = width, height = height, generator = generator).images[0]elif style=="PixelArt"image = pipe_pixel( prompt = instruction, guidance_scale = 5, num_inference_steps = steps, width = width, height = height, generator = generator).images[0]elif style=="Logo"image = pipe_logo( prompt = instruction, guidance_scale = 5, num_inference_steps = steps, width = width, height = height, generator = generator).images[0]elif style=="Origami"image = pipe_ori( prompt = instruction, guidance_scale = 5, num_inference_steps = steps, width = width, height = height, generator = generator).images[0]else:image = pipe_best( prompt = instruction, guidance_scale = 5, num_inference_steps = steps, width = width, height = height, generator = generator).images[0]112 unmodified lines113114115116117118119120121122123124125112 unmodified linesif randomize_seed:seed = random.randint(0, 99999)generator = torch.Generator().manual_seed(seed)if style=="3D":image = pipe_3D( prompt = instruction, guidance_scale = 5, num_inference_steps = steps, width = width, height = height, generator = generator).images[0]elif style=="PixelArt":image = pipe_pixel( prompt = instruction, guidance_scale = 5, num_inference_steps = steps, width = width, height = height, generator = generator).images[0]elif style=="Logo":image = pipe_logo( prompt = instruction, guidance_scale = 5, num_inference_steps = steps, width = width, height = height, generator = generator).images[0]elif style=="Origami":image = pipe_ori( prompt = instruction, guidance_scale = 5, num_inference_steps = steps, width = width, height = height, generator = generator).images[0]else:image = pipe_best( prompt = instruction, guidance_scale = 5, num_inference_steps = steps, width = width, height = height, generator = generator).images[0]
app.py+4-4