Spaces:
SHOOL45
/
Runtime error

Rooni commited on
Commit
00f0545
1 Parent(s): 77079d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -33,7 +33,7 @@ mmodels = {
33
  timeout = 100
34
  # PLEASE ❤ like ❤ this space. Please like me. I am 12 years old, one of my projects is: https://ai-hub.rf.gd . I live in Russia, I don't know English very well. Therefore, I apologize that there is only Russian here, but I think it will not be difficult to translate all this. (For example, using gpt)
35
 
36
- def query(gpt=True, prompt, model="DALL-E 3 XL", is_negative=False, steps=30, cfg_scale=7, sampler="DPM++ 2M Karras", seed=-1, strength=0.7, width=1024, height=1024):
37
  if prompt == "" or prompt == None:
38
  return None
39
 
@@ -188,6 +188,6 @@ with gr.Blocks(css=css, theme="YTheme/KidsShool") as dalle:
188
  with gr.Row():
189
  image_output = gr.Image(type="pil", label="Изображение", elem_id="gallery")
190
 
191
- text_button.click(query, inputs=[gpt, text_prompt, negative_prompt], outputs=image_output)
192
 
193
  dalle.launch(show_api=False, share=False)
 
33
  timeout = 100
34
  # PLEASE ❤ like ❤ this space. Please like me. I am 12 years old, one of my projects is: https://ai-hub.rf.gd . I live in Russia, I don't know English very well. Therefore, I apologize that there is only Russian here, but I think it will not be difficult to translate all this. (For example, using gpt)
35
 
36
+ def query(prompt, model="DALL-E 3 XL", gpt=True, is_negative=False, steps=30, cfg_scale=7, sampler="DPM++ 2M Karras", seed=-1, strength=0.7, width=1024, height=1024):
37
  if prompt == "" or prompt == None:
38
  return None
39
 
 
188
  with gr.Row():
189
  image_output = gr.Image(type="pil", label="Изображение", elem_id="gallery")
190
 
191
+ text_button.click(query, inputs=[text_prompt, negative_promp, gpt], outputs=image_output)
192
 
193
  dalle.launch(show_api=False, share=False)