Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ def generate_sketch(prompt, num_inference_steps, guidance_scale):
|
|
30 |
#for result in text_classification:
|
31 |
# if result['label'] == 'nsfw' and result['score'] > NSFW_THRESHOLD:
|
32 |
# return gr.update(visible=False),gr.Text(value="Inappropriate prompt detected. Please try another prompt.")
|
33 |
-
|
34 |
image = pipe("sketched style, " + prompt,
|
35 |
num_inference_steps=num_inference_steps,
|
36 |
guidance_scale=guidance_scale,
|
|
|
30 |
#for result in text_classification:
|
31 |
# if result['label'] == 'nsfw' and result['score'] > NSFW_THRESHOLD:
|
32 |
# return gr.update(visible=False),gr.Text(value="Inappropriate prompt detected. Please try another prompt.")
|
33 |
+
print(prompt)
|
34 |
image = pipe("sketched style, " + prompt,
|
35 |
num_inference_steps=num_inference_steps,
|
36 |
guidance_scale=guidance_scale,
|