Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
comdoleger
commited on
Commit
•
a885e1e
1
Parent(s):
7eb88b3
Update app.py
Browse files
app.py
CHANGED
@@ -65,6 +65,7 @@ def process_generate(fore, prompt, image_width, image_height, intensity, mode, r
|
|
65 |
|
66 |
|
67 |
forestr = image_to_base64(fore.convert("RGBA"))
|
|
|
68 |
data = {
|
69 |
"foreground_image64": forestr,
|
70 |
"prompt" : prompt,
|
@@ -74,6 +75,16 @@ def process_generate(fore, prompt, image_width, image_height, intensity, mode, r
|
|
74 |
"height" : int(image_height),
|
75 |
"refprompt" : refprompt
|
76 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
|
78 |
image = process(data, api, api_key)
|
79 |
|
|
|
65 |
|
66 |
|
67 |
forestr = image_to_base64(fore.convert("RGBA"))
|
68 |
+
'''
|
69 |
data = {
|
70 |
"foreground_image64": forestr,
|
71 |
"prompt" : prompt,
|
|
|
75 |
"height" : int(image_height),
|
76 |
"refprompt" : refprompt
|
77 |
}
|
78 |
+
'''
|
79 |
+
data = {
|
80 |
+
"foreground_image64": forestr,
|
81 |
+
"prompt" : "There is Perfume, nestled on a crystalline cliff of glistening snow, under a celestial night sky adorned with constellations and swirling galaxies, framed by ethereal, blue flames that dance gracefully in the icy air",
|
82 |
+
"mode" : "full", #refiner, full
|
83 |
+
"intensity" : 3.0,
|
84 |
+
"width" : 1000,
|
85 |
+
"height" : 1000,
|
86 |
+
"refprompt" : " transparent glass "
|
87 |
+
}
|
88 |
|
89 |
image = process(data, api, api_key)
|
90 |
|