animrods commited on
Commit
ba04723
·
verified ·
1 Parent(s): 3e31463

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -23,7 +23,7 @@ def read_content(file_path: str) -> str:
23
 
24
  return content
25
 
26
- def predict(dict, prompt="high quality, best quality", negative_prompt="", guidance_scale=5, steps=30, ip_adapter_scale = 1.0, width=1024, height=1024, seed=0):
27
 
28
  pipe.set_ip_adapter_scale(ip_adapter_scale)
29
 
@@ -100,6 +100,8 @@ with image_blocks as demo:
100
  with gr.Row():
101
  with gr.Column():
102
  image = gr.Image(sources=None, elem_id="image_upload", type="pil", label="Upload", height=400)
 
 
103
 
104
  with gr.Row(elem_id="prompt-container", equal_height=True):
105
  with gr.Row():
 
23
 
24
  return content
25
 
26
+ def predict(image, prompt="high quality, best quality", negative_prompt="", guidance_scale=5, steps=30, ip_adapter_scale = 1.0, width=1024, height=1024, seed=0):
27
 
28
  pipe.set_ip_adapter_scale(ip_adapter_scale)
29
 
 
100
  with gr.Row():
101
  with gr.Column():
102
  image = gr.Image(sources=None, elem_id="image_upload", type="pil", label="Upload", height=400)
103
+ # image = gr.Image(sources=None, type="pil") # None for upload, ctrl+v and webcam
104
+
105
 
106
  with gr.Row(elem_id="prompt-container", equal_height=True):
107
  with gr.Row():