animrods commited on
Commit
d96ecb8
·
verified ·
1 Parent(s): 6ac7655

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -45,7 +45,7 @@ def predict(dict, prompt="high quality, best quality", negative_prompt="", guida
45
  guidance_scale=guidance_scale
46
  ).images
47
 
48
- return output.images[0] #, gr.update(visible=True)
49
 
50
 
51
  css = '''
@@ -98,7 +98,7 @@ with image_blocks as demo:
98
  ''')
99
  with gr.Row():
100
  with gr.Column():
101
- image = gr.Image(sources=['upload'], tool='sketch', elem_id="image_upload", type="pil", label="Upload", height=400)
102
  with gr.Row(elem_id="prompt-container", equal_height=True):
103
  with gr.Row():
104
  prompt = gr.Textbox(placeholder="Your prompt (you can leave it empty if you only want the image prompt as input)", show_label=False, elem_id="prompt")
 
45
  guidance_scale=guidance_scale
46
  ).images
47
 
48
+ return output[0] #, gr.update(visible=True)
49
 
50
 
51
  css = '''
 
98
  ''')
99
  with gr.Row():
100
  with gr.Column():
101
+ image = gr.Image(sources=['upload'], elem_id="image_upload", type="pil", label="Upload", height=400)
102
  with gr.Row(elem_id="prompt-container", equal_height=True):
103
  with gr.Row():
104
  prompt = gr.Textbox(placeholder="Your prompt (you can leave it empty if you only want the image prompt as input)", show_label=False, elem_id="prompt")