Spaces:
Running
on
Zero
Running
on
Zero
Stephen
commited on
Commit
·
2e9ba49
1
Parent(s):
b77025c
add api
Browse files
app.py
CHANGED
@@ -469,7 +469,10 @@ with block:
|
|
469 |
|
470 |
bg_gallery.select(bg_gallery_selected, inputs=bg_gallery, outputs=input_bg)
|
471 |
|
472 |
-
gr.
|
|
|
|
|
|
|
473 |
|
474 |
|
475 |
block.launch(server_name='0.0.0.0')
|
|
|
469 |
|
470 |
bg_gallery.select(bg_gallery_selected, inputs=bg_gallery, outputs=input_bg)
|
471 |
|
472 |
+
fg = gr.Textbox(label="Paste an image URL")
|
473 |
+
bg = gr.Textbox(label="Paste an image URL")
|
474 |
+
ips2 = [fg, bg, prompt, image_width, image_height, num_samples, seed, steps, a_prompt, n_prompt, cfg, highres_scale, highres_denoise, bg_source]
|
475 |
+
gr.Interface(fn, inputs=ips2, outputs=[result_gallery], api_name="fn")
|
476 |
|
477 |
|
478 |
block.launch(server_name='0.0.0.0')
|