Spaces:
Running
on
Zero
Running
on
Zero
prithivMLmods
commited on
Commit
•
8f32193
1
Parent(s):
016bf4c
Update app.py
Browse files
app.py
CHANGED
@@ -32,32 +32,20 @@ def check_text(prompt, negative=""):
|
|
32 |
style_list = [
|
33 |
|
34 |
{
|
35 |
-
"name": "
|
36 |
-
"prompt": "hyper-realistic
|
37 |
"negative_prompt": "cartoonish, low resolution, blurry, simplistic, abstract, deformed, ugly",
|
38 |
},
|
39 |
-
|
40 |
{
|
41 |
-
"name": "
|
42 |
-
"prompt": "
|
43 |
-
"negative_prompt": "
|
44 |
-
},
|
45 |
-
|
46 |
-
{
|
47 |
-
"name": "Cinematic",
|
48 |
-
"prompt": "cinematic still {prompt}. emotional, harmonious, vignette, highly detailed, high budget, bokeh, cinemascope, moody, epic, gorgeous, film grain, grainy",
|
49 |
-
"negative_prompt": "anime, cartoon, graphic, text, painting, crayon, graphite, abstract, glitch, deformed, mutated, ugly, disfigured",
|
50 |
},
|
51 |
|
52 |
{
|
53 |
-
"name": "
|
54 |
-
"prompt": "
|
55 |
-
"negative_prompt": "
|
56 |
-
},
|
57 |
-
{
|
58 |
-
"name": "3D Model",
|
59 |
-
"prompt": "professional 3d model {prompt}. octane render, highly detailed, volumetric, dramatic lighting",
|
60 |
-
"negative_prompt": "ugly, deformed, noisy, low poly, blurry, painting",
|
61 |
},
|
62 |
{
|
63 |
"name": "(No style)",
|
@@ -68,7 +56,7 @@ style_list = [
|
|
68 |
|
69 |
styles = {k["name"]: (k["prompt"], k["negative_prompt"]) for k in style_list}
|
70 |
STYLE_NAMES = list(styles.keys())
|
71 |
-
DEFAULT_STYLE_NAME = "
|
72 |
|
73 |
def apply_style(style_name: str, positive: str, negative: str = "") -> Tuple[str, str]:
|
74 |
p, n = styles.get(style_name, styles[DEFAULT_STYLE_NAME])
|
|
|
32 |
style_list = [
|
33 |
|
34 |
{
|
35 |
+
"name": "3840 x 2160",
|
36 |
+
"prompt": "hyper-realistic 8K image of {prompt}. ultra-detailed, lifelike, high-resolution, sharp, vibrant colors, photorealistic",
|
37 |
"negative_prompt": "cartoonish, low resolution, blurry, simplistic, abstract, deformed, ugly",
|
38 |
},
|
|
|
39 |
{
|
40 |
+
"name": "2560 x 1440",
|
41 |
+
"prompt": "hyper-realistic 4K image of {prompt}. ultra-detailed, lifelike, high-resolution, sharp, vibrant colors, photorealistic",
|
42 |
+
"negative_prompt": "cartoonish, low resolution, blurry, simplistic, abstract, deformed, ugly",
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
},
|
44 |
|
45 |
{
|
46 |
+
"name": "HD+",
|
47 |
+
"prompt": "hyper-realistic 2K image of {prompt}. ultra-detailed, lifelike, high-resolution, sharp, vibrant colors, photorealistic",
|
48 |
+
"negative_prompt": "cartoonish, low resolution, blurry, simplistic, abstract, deformed, ugly",
|
|
|
|
|
|
|
|
|
|
|
49 |
},
|
50 |
{
|
51 |
"name": "(No style)",
|
|
|
56 |
|
57 |
styles = {k["name"]: (k["prompt"], k["negative_prompt"]) for k in style_list}
|
58 |
STYLE_NAMES = list(styles.keys())
|
59 |
+
DEFAULT_STYLE_NAME = "3840 x 2160"
|
60 |
|
61 |
def apply_style(style_name: str, positive: str, negative: str = "") -> Tuple[str, str]:
|
62 |
p, n = styles.get(style_name, styles[DEFAULT_STYLE_NAME])
|