CiaraRowles commited on
Commit
4d6f4fa
·
verified ·
1 Parent(s): bdbe29e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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,instruct_query, scale, nfaa_negative_prompt, progress=gr.Progress(track_tqdm=True)):
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,instruct_query, 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.")
 
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.")