pradeep6kumar2024 commited on
Commit
0aeb023
·
1 Parent(s): 90ec6ed

updated for time out

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -87,7 +87,7 @@ def generate_image(prompt, style, seed, apply_guidance, guidance_strength=0.5):
87
  styled_prompt,
88
  generator=generator,
89
  guidance_scale=7.5,
90
- num_inference_steps=50
91
  ).images[0]
92
 
93
  # Apply purple guidance if requested
@@ -118,8 +118,9 @@ demo = gr.Interface(
118
  ["A serene mountain landscape with a lake at sunset", "glitch", 42, True, 0.5],
119
  ["A magical forest at twilight", "anime80s", 789, True, 0.7],
120
  ["A cyberpunk city at night", "night", 456, False, 0.5],
121
- ]
 
122
  )
123
 
124
  if __name__ == "__main__":
125
- demo.launch()
 
87
  styled_prompt,
88
  generator=generator,
89
  guidance_scale=7.5,
90
+ num_inference_steps=20
91
  ).images[0]
92
 
93
  # Apply purple guidance if requested
 
118
  ["A serene mountain landscape with a lake at sunset", "glitch", 42, True, 0.5],
119
  ["A magical forest at twilight", "anime80s", 789, True, 0.7],
120
  ["A cyberpunk city at night", "night", 456, False, 0.5],
121
+ ],
122
+ cache_examples=True
123
  )
124
 
125
  if __name__ == "__main__":
126
+ demo.launch(share=False)