Spaces:
Runtime error
Runtime error
clementrof
commited on
Commit
•
2083734
1
Parent(s):
953f4c0
Update app3.py
Browse files
app3.py
CHANGED
@@ -18,7 +18,7 @@ token = '5UAYO8UWHNQKT3UUS9H8V360L76MD72DRIUY9QC2'
|
|
18 |
def SD_call(image_prompt, age, color, hair_color,NSFW):
|
19 |
|
20 |
|
21 |
-
|
22 |
negative = "naked, nsfw, porn"
|
23 |
serverless_api_id = '3g77weiulabzuk'
|
24 |
# Define the URL you want to send the request to
|
@@ -33,8 +33,8 @@ def SD_call(image_prompt, age, color, hair_color,NSFW):
|
|
33 |
|
34 |
# Define your data (this could also be a JSON payload)
|
35 |
print("SD_processing")
|
36 |
-
if NSFW:
|
37 |
-
|
38 |
negative = "clothes"
|
39 |
data = {
|
40 |
"input": {
|
|
|
18 |
def SD_call(image_prompt, age, color, hair_color,NSFW):
|
19 |
|
20 |
|
21 |
+
positive = "clothes"
|
22 |
negative = "naked, nsfw, porn"
|
23 |
serverless_api_id = '3g77weiulabzuk'
|
24 |
# Define the URL you want to send the request to
|
|
|
33 |
|
34 |
# Define your data (this could also be a JSON payload)
|
35 |
print("SD_processing")
|
36 |
+
if NSFW == True:
|
37 |
+
positive = "naked, nsfw"
|
38 |
negative = "clothes"
|
39 |
data = {
|
40 |
"input": {
|