ovi054 commited on
Commit
9ab70d4
1 Parent(s): 61ebb83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -74,7 +74,7 @@ def query(lora_id, prompt, steps=28, cfg_scale=3.5, randomize_seed=True, seed=-1
74
  image_bytes = response.content
75
  image = Image.open(io.BytesIO(image_bytes))
76
  print(f'\033[1mGeneration {key} completed!\033[0m ({prompt})')
77
- return image, seed
78
  except Exception as e:
79
  print(f"Error when trying to open the image: {e}")
80
  return None
@@ -130,6 +130,6 @@ with gr.Blocks(theme='Nymbo/Nymbo_Theme', css=css) as app:
130
  )
131
 
132
 
133
- text_button.click(query, inputs=[custom_lora, text_prompt, steps, cfg, randomize_seed, seed, width, height], outputs=[image_output,seed_output])
134
 
135
  app.launch(show_api=False, share=False)
 
74
  image_bytes = response.content
75
  image = Image.open(io.BytesIO(image_bytes))
76
  print(f'\033[1mGeneration {key} completed!\033[0m ({prompt})')
77
+ return image, seed, seed
78
  except Exception as e:
79
  print(f"Error when trying to open the image: {e}")
80
  return None
 
130
  )
131
 
132
 
133
+ text_button.click(query, inputs=[custom_lora, text_prompt, steps, cfg, randomize_seed, seed, width, height], outputs=[image_output,seed_output, seed])
134
 
135
  app.launch(show_api=False, share=False)