Spaces:
Running
Running
prithivMLmods
commited on
Commit
•
3106667
1
Parent(s):
1b63cf9
Update app.py
Browse files
app.py
CHANGED
@@ -33,11 +33,7 @@ USE_TORCH_COMPILE = 0
|
|
33 |
ENABLE_CPU_OFFLOAD = 0
|
34 |
|
35 |
style_list = [
|
36 |
-
|
37 |
-
"name": "(No style)",
|
38 |
-
"prompt": "{prompt}",
|
39 |
-
"negative_prompt": "",
|
40 |
-
},
|
41 |
{
|
42 |
"name": "3840 x 2160",
|
43 |
"prompt": "hyper-realistic 8K image of {prompt} . ultra-detailed, lifelike, high-resolution, sharp, vibrant colors, photorealistic",
|
@@ -83,11 +79,17 @@ style_list = [
|
|
83 |
"prompt": "professional 3d model {prompt} . octane render, highly detailed, volumetric, dramatic lighting",
|
84 |
"negative_prompt": "ugly, deformed, noisy, low poly, blurry, painting",
|
85 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
]
|
87 |
|
88 |
styles = {k["name"]: (k["prompt"], k["negative_prompt"]) for k in style_list}
|
89 |
STYLE_NAMES = list(styles.keys())
|
90 |
-
DEFAULT_STYLE_NAME = "(
|
91 |
|
92 |
def apply_style(style_name: str, positive: str, negative: str = "") -> Tuple[str, str]:
|
93 |
p, n = styles.get(style_name, styles[DEFAULT_STYLE_NAME])
|
|
|
33 |
ENABLE_CPU_OFFLOAD = 0
|
34 |
|
35 |
style_list = [
|
36 |
+
|
|
|
|
|
|
|
|
|
37 |
{
|
38 |
"name": "3840 x 2160",
|
39 |
"prompt": "hyper-realistic 8K image of {prompt} . ultra-detailed, lifelike, high-resolution, sharp, vibrant colors, photorealistic",
|
|
|
79 |
"prompt": "professional 3d model {prompt} . octane render, highly detailed, volumetric, dramatic lighting",
|
80 |
"negative_prompt": "ugly, deformed, noisy, low poly, blurry, painting",
|
81 |
},
|
82 |
+
|
83 |
+
{
|
84 |
+
"name": "(No style)",
|
85 |
+
"prompt": "{prompt}",
|
86 |
+
"negative_prompt": "",
|
87 |
+
},
|
88 |
]
|
89 |
|
90 |
styles = {k["name"]: (k["prompt"], k["negative_prompt"]) for k in style_list}
|
91 |
STYLE_NAMES = list(styles.keys())
|
92 |
+
DEFAULT_STYLE_NAME = "(3840 x 2160)"
|
93 |
|
94 |
def apply_style(style_name: str, positive: str, negative: str = "") -> Tuple[str, str]:
|
95 |
p, n = styles.get(style_name, styles[DEFAULT_STYLE_NAME])
|