OriLib commited on
Commit
54c0124
1 Parent(s): 12000db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -63,7 +63,7 @@ with block:
63
  ''')
64
  with gr.Row():
65
  with gr.Column():
66
- input_image = gr.Image(sources=None, type="pil",label="Upload",height=600) # None for upload, ctrl+v and webcam
67
  prompt = gr.Textbox(label="Prompt")
68
  negative_prompt = gr.Textbox(label="Negative prompt", value="Logo,Watermark,Text,Ugly,Morbid,Extra fingers,Poorly drawn hands,Mutation,Blurry,Extra limbs,Gross proportions,Missing arms,Mutated hands,Long neck,Duplicate,Mutilated,Mutilated hands,Poorly drawn face,Deformed,Bad anatomy,Cloned face,Malformed limbs,Missing legs,Too many fingers")
69
  num_steps = gr.Slider(label="Number of steps", minimum=10, maximum=100, value=30, step=1)
@@ -85,7 +85,7 @@ with block:
85
  ["./example3.png"],
86
  ["./example4.png"],
87
  ],
88
- fn=predict,
89
  inputs=[image],
90
  cache_examples=False,
91
  )
 
63
  ''')
64
  with gr.Row():
65
  with gr.Column():
66
+ input_image = gr.Image(sources='upload', type="pil", label="Upload", elem_id="image_upload", height=600) # None for upload, ctrl+v and webcam
67
  prompt = gr.Textbox(label="Prompt")
68
  negative_prompt = gr.Textbox(label="Negative prompt", value="Logo,Watermark,Text,Ugly,Morbid,Extra fingers,Poorly drawn hands,Mutation,Blurry,Extra limbs,Gross proportions,Missing arms,Mutated hands,Long neck,Duplicate,Mutilated,Mutilated hands,Poorly drawn face,Deformed,Bad anatomy,Cloned face,Malformed limbs,Missing legs,Too many fingers")
69
  num_steps = gr.Slider(label="Number of steps", minimum=10, maximum=100, value=30, step=1)
 
85
  ["./example3.png"],
86
  ["./example4.png"],
87
  ],
88
+ fn=process,
89
  inputs=[image],
90
  cache_examples=False,
91
  )