Spaces:
Runtime error
Runtime error
Fix Bug
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ def answer_question(question):
|
|
15 |
|
16 |
def fashion(question):
|
17 |
output = answer_question(question)
|
18 |
-
image =
|
19 |
output, # str in 'What you want the AI to generate. 77 Token Limit.' Textbox component
|
20 |
"blurry, cropped, nsfw, bad hands, 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
|
@@ -23,7 +23,7 @@ def fashion(question):
|
|
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 |
9326438724, # int | float (numeric value between 1 and 9999999999999999) in 'seed' Slider component
|
26 |
-
"
|
27 |
api_name="/predict"
|
28 |
)
|
29 |
print(image)
|
|
|
15 |
|
16 |
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, bad hands, 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
|
|
|
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 |
9326438724, # int | float (numeric value between 1 and 9999999999999999) in 'seed' Slider component
|
26 |
+
"No", # str in 'Upscale?' Radio component
|
27 |
api_name="/predict"
|
28 |
)
|
29 |
print(image)
|