RanM commited on
Commit
03835a9
·
verified ·
1 Parent(s): 97d1a98

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ model = AutoPipelineForText2Image.from_pretrained("stabilityai/sdxl-turbo")
11
  async def generate_image(prompt):
12
  try:
13
  # Use a higher value for num_inference_steps to avoid IndexError
14
- num_inference_steps = 10 # Adjust this value as needed
15
 
16
  # Use the model to generate an image
17
  output = await asyncio.to_thread(
 
11
  async def generate_image(prompt):
12
  try:
13
  # Use a higher value for num_inference_steps to avoid IndexError
14
+ num_inference_steps = 3 # Adjust this value as needed
15
 
16
  # Use the model to generate an image
17
  output = await asyncio.to_thread(