Spaces:
Runtime error
Runtime error
Edit ngrok
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ initial_height = 512
|
|
13 |
|
14 |
params = {
|
15 |
"enable_SD_api": True,
|
16 |
-
"address": "https://
|
17 |
"save_img": True,
|
18 |
"SD_model": "Unused", # not actually used
|
19 |
"prompt_prefix": "4k, 8k, masterpiece, artstation, in dressed",
|
@@ -87,6 +87,7 @@ def display_image(description: str, kashif: bool, daniel_ho: bool) -> gr.Image:
|
|
87 |
params["height"] = initial_height
|
88 |
|
89 |
visible_result = get_SD_pictures(description)
|
|
|
90 |
image_data = base64.b64decode(visible_result.split(",", 1)[1])
|
91 |
image = Image.open(io.BytesIO(image_data))
|
92 |
return image
|
|
|
13 |
|
14 |
params = {
|
15 |
"enable_SD_api": True,
|
16 |
+
"address": "https://fb9f-2001-d08-e3-41de-e9bf-9904-76d2-5584.ngrok-free.app",
|
17 |
"save_img": True,
|
18 |
"SD_model": "Unused", # not actually used
|
19 |
"prompt_prefix": "4k, 8k, masterpiece, artstation, in dressed",
|
|
|
87 |
params["height"] = initial_height
|
88 |
|
89 |
visible_result = get_SD_pictures(description)
|
90 |
+
print(description)
|
91 |
image_data = base64.b64decode(visible_result.split(",", 1)[1])
|
92 |
image = Image.open(io.BytesIO(image_data))
|
93 |
return image
|