fffiloni commited on
Commit
0a0db87
β€’
1 Parent(s): 56e0f5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -35,7 +35,8 @@ def get_new_prompt(img, mode):
35
  def infer(prompt, mode):
36
  img = get_images(prompt)
37
  result = get_new_prompt(img, mode)
38
- return result[0], img
 
39
 
40
  with gr.Blocks() as demo:
41
 
@@ -50,7 +51,7 @@ with gr.Blocks() as demo:
50
  prompt_output = gr.Textbox(lines=4, label="Converted v2.x Stable Diffusion prompt")
51
 
52
  submit_btn.click(
53
- fn=infer, inputs=[prompt_input,mode_input], outputs=[prompt_output, sd_inter]
54
  )
55
 
56
  examples=[
@@ -63,7 +64,7 @@ with gr.Blocks() as demo:
63
  examples = examples,
64
  fn = infer,
65
  inputs=[prompt_input,mode_input],
66
- outputs=[prompt_output, sd_inter]
67
  )
68
 
69
  #demo=gr.Interface(fn=infer, inputs=[prompt_input,mode_input], outputs=[prompt_output],title=title,description=description,examples=examples)
 
35
  def infer(prompt, mode):
36
  img = get_images(prompt)
37
  result = get_new_prompt(img, mode)
38
+ #return result[0], img
39
+ return img
40
 
41
  with gr.Blocks() as demo:
42
 
 
51
  prompt_output = gr.Textbox(lines=4, label="Converted v2.x Stable Diffusion prompt")
52
 
53
  submit_btn.click(
54
+ fn=infer, inputs=[prompt_input,mode_input], outputs=[sd_inter]
55
  )
56
 
57
  examples=[
 
64
  examples = examples,
65
  fn = infer,
66
  inputs=[prompt_input,mode_input],
67
+ outputs=[sd_inter]
68
  )
69
 
70
  #demo=gr.Interface(fn=infer, inputs=[prompt_input,mode_input], outputs=[prompt_output],title=title,description=description,examples=examples)