Rooni commited on
Commit
36374ad
1 Parent(s): c2f0585

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -93,7 +93,7 @@ def query(prompt, model, is_negative=False, steps=20, cfg_scale=7, seed=None):
93
 
94
 
95
 
96
- def inference(img, version, scale, weight):
97
  weight /= 100
98
  print(img, version, scale, weight)
99
  try:
@@ -180,6 +180,6 @@ with gr.Blocks(css=css) as dalle:
180
  up_output = gr.Image(type="pil", label="Улучшенное изображение", elem_id="gallery"),
181
 
182
  text_button.click(query, inputs=[text_prompt, model, negative_prompt], outputs=image_output)
183
- up_button.click(query, inputs=[image_output, up_1, up_2, up_3], outputs=up_output)
184
 
185
  dalle.launch(show_api=False)
 
93
 
94
 
95
 
96
+ def up(img, version, scale, weight):
97
  weight /= 100
98
  print(img, version, scale, weight)
99
  try:
 
180
  up_output = gr.Image(type="pil", label="Улучшенное изображение", elem_id="gallery"),
181
 
182
  text_button.click(query, inputs=[text_prompt, model, negative_prompt], outputs=image_output)
183
+ up_button.click(up, inputs=[image_output, up_1, up_2, up_3], outputs=up_output)
184
 
185
  dalle.launch(show_api=False)