zs38 commited on
Commit
102c482
·
1 Parent(s): 07567f4
Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -1,6 +1,4 @@
1
  import os
2
- import sys
3
- sys.path.append('app/')
4
 
5
  import torch
6
  import spaces
@@ -86,11 +84,11 @@ iface = gr.Interface(
86
  inputs=[
87
  gr.Image(type="pil", label="Upload Reference Subject Image"),
88
  gr.Textbox(lines=2, placeholder="Describe the desired contents", label="Description Text"),
89
- gr.Slider(minimum=256, maximum=1024, default=512, label="Height"),
90
- gr.Slider(minimum=256, maximum=1024, default=512, label="Width"),
91
- gr.Slider(minimum=20, maximum=50, default=25, label="Number of Steps"),
92
- gr.Slider(minimum=1.0, maximum=8.0, default=3.5, label="Guidance Scale"),
93
- gr.Slider(minimum=0.0, maximum=2.0, default=1.0, label="Reference image Scale"),
94
  ],
95
  outputs=gr.Image(type="pil", label="Generated Image"),
96
  )
 
1
  import os
 
 
2
 
3
  import torch
4
  import spaces
 
84
  inputs=[
85
  gr.Image(type="pil", label="Upload Reference Subject Image"),
86
  gr.Textbox(lines=2, placeholder="Describe the desired contents", label="Description Text"),
87
+ gr.Slider(minimum=256, maximum=1024, value=512, label="Height"),
88
+ gr.Slider(minimum=256, maximum=1024, value=512, label="Width"),
89
+ gr.Slider(minimum=20, maximum=50, value=25, label="Number of Steps"),
90
+ gr.Slider(minimum=1.0, maximum=8.0, value=3.5, label="Guidance Scale"),
91
+ gr.Slider(minimum=0.0, maximum=2.0, value=1.0, label="Reference image Scale"),
92
  ],
93
  outputs=gr.Image(type="pil", label="Generated Image"),
94
  )