Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ device = "cuda"
|
|
21 |
cv2.setNumThreads(1)
|
22 |
|
23 |
@spaces.GPU(enable_queue=True)
|
24 |
-
def generate_image(images, prompt, negative_prompt,
|
25 |
|
26 |
|
27 |
|
@@ -73,7 +73,7 @@ with gr.Blocks(css=css) as demo:
|
|
73 |
gallery = gr.Gallery(label="Generated Images")
|
74 |
|
75 |
submit.click(fn=generate_image,
|
76 |
-
inputs=[files, prompt, negative_prompt,
|
77 |
outputs=gallery)
|
78 |
|
79 |
gr.Markdown("This demo includes extra features to mitigate the implicit bias of the model and prevent explicit usage of it to generate content with faces of people, including third parties, that is not safe for all audiences, including naked or semi-naked people.")
|
|
|
21 |
cv2.setNumThreads(1)
|
22 |
|
23 |
@spaces.GPU(enable_queue=True)
|
24 |
+
def generate_image(images, prompt, negative_prompt, scale, nfaa_negative_prompt, progress=gr.Progress(track_tqdm=True)):
|
25 |
|
26 |
|
27 |
|
|
|
73 |
gallery = gr.Gallery(label="Generated Images")
|
74 |
|
75 |
submit.click(fn=generate_image,
|
76 |
+
inputs=[files, prompt, negative_prompt, scale, nfaa_negative_prompts],
|
77 |
outputs=gallery)
|
78 |
|
79 |
gr.Markdown("This demo includes extra features to mitigate the implicit bias of the model and prevent explicit usage of it to generate content with faces of people, including third parties, that is not safe for all audiences, including naked or semi-naked people.")
|