Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -75,6 +75,7 @@ def king(type ,
|
|
| 75 |
progress=gr.Progress(track_tqdm=True)
|
| 76 |
):
|
| 77 |
if type=="Image Editing" :
|
|
|
|
| 78 |
if randomize_seed:
|
| 79 |
seed = random.randint(0, 999999)
|
| 80 |
generator = torch.manual_seed(seed)
|
|
@@ -204,7 +205,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 204 |
fast = gr.Checkbox(label="FAST Generation", value=True, scale=0)
|
| 205 |
|
| 206 |
with gr.Row():
|
| 207 |
-
input_image = gr.Image(label="Image", type='
|
| 208 |
|
| 209 |
with gr.Row():
|
| 210 |
guidance_scale = gr.Number(value=6.0, step=0.1, label="Guidance Scale", interactive=True)
|
|
|
|
| 75 |
progress=gr.Progress(track_tqdm=True)
|
| 76 |
):
|
| 77 |
if type=="Image Editing" :
|
| 78 |
+
input_image = Image.open(input_image).convert('RGB')
|
| 79 |
if randomize_seed:
|
| 80 |
seed = random.randint(0, 999999)
|
| 81 |
generator = torch.manual_seed(seed)
|
|
|
|
| 205 |
fast = gr.Checkbox(label="FAST Generation", value=True, scale=0)
|
| 206 |
|
| 207 |
with gr.Row():
|
| 208 |
+
input_image = gr.Image(label="Image", type='filepath', interactive=True)
|
| 209 |
|
| 210 |
with gr.Row():
|
| 211 |
guidance_scale = gr.Number(value=6.0, step=0.1, label="Guidance Scale", interactive=True)
|