Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,16 +17,15 @@ def fashion(question):
|
|
17 |
output = answer_question(question)
|
18 |
image = image_client.predict(
|
19 |
output, # str in 'What you want the AI to generate. 77 Token Limit.' Textbox component
|
20 |
-
"blurry, cropped, nsfw,
|
21 |
512, # int | float (numeric value between 512 and 1024) in 'Height' Slider component
|
22 |
512, # int | float (numeric value between 512 and 1024) in 'Width' Slider component
|
23 |
9, # int | float (numeric value between 1 and 15) in 'scale' Slider component
|
24 |
25, # int | float (numeric value between 25 and 100) in 'steps' Slider component
|
25 |
-
|
26 |
-
"
|
27 |
api_name="/predict"
|
28 |
)
|
29 |
-
print(image)
|
30 |
return None, output, image
|
31 |
|
32 |
|
|
|
17 |
output = answer_question(question)
|
18 |
image = image_client.predict(
|
19 |
output, # str in 'What you want the AI to generate. 77 Token Limit.' Textbox component
|
20 |
+
"blurry, cropped, nsfw, badhands, disfigured", # str in 'What you Do Not want the AI to generate. 77 Token Limit' Textbox component
|
21 |
512, # int | float (numeric value between 512 and 1024) in 'Height' Slider component
|
22 |
512, # int | float (numeric value between 512 and 1024) in 'Width' Slider component
|
23 |
9, # int | float (numeric value between 1 and 15) in 'scale' Slider component
|
24 |
25, # int | float (numeric value between 25 and 100) in 'steps' Slider component
|
25 |
+
23465432238, # int | float (numeric value between 1 and 9999999999999999) in 'seed' Slider component
|
26 |
+
"Yes", # str in 'Upscale?' Radio component
|
27 |
api_name="/predict"
|
28 |
)
|
|
|
29 |
return None, output, image
|
30 |
|
31 |
|