Update main.py
Browse files
main.py
CHANGED
@@ -17,7 +17,7 @@ from deep_translator import GoogleTranslator
|
|
17 |
|
18 |
app = FastAPI()
|
19 |
|
20 |
-
API_URL = "https://api-inference.huggingface.co/models/
|
21 |
API_TOKEN = os.getenv("HF_READ_TOKEN") # it is free
|
22 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
23 |
|
@@ -26,7 +26,7 @@ headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
|
26 |
|
27 |
|
28 |
text_gen = gr.Interface.load("models/Gustavosta/MagicPrompt-Stable-Diffusion")
|
29 |
-
|
30 |
|
31 |
queue = Queue()
|
32 |
queue_threshold = 100
|
@@ -110,17 +110,7 @@ def get_prompts(prompt_text):
|
|
110 |
timestamp = f"{time.time()}_{request_counter}"
|
111 |
|
112 |
options = [
|
113 |
-
"
|
114 |
-
"2060",
|
115 |
-
"newyork",
|
116 |
-
"style of laurie greasley" , "studio ghibli" , "akira toriyama" , "james gilleard" , "genshin impact" , "trending pixiv fanbox" , "acrylic palette knife, 4k, vibrant colors, devinart, trending on artstation, low details"
|
117 |
-
"Editorial Photography, Shot on 70mm lens, Depth of Field, Bokeh, DOF, Tilt Blur, Shutter Speed 1/1000, F/22, 32k, Super-Resolution, award winning,",
|
118 |
-
"high detail, warm lighting, godrays, vivid, beautiful, trending on artstation, by jordan grimmer, huge scene, grass, art greg rutkowski ",
|
119 |
-
"highly detailed, digital painting, artstation, illustration, art by artgerm and greg rutkowski and alphonse mucha.",
|
120 |
-
"Charlie Bowater, stanley artgerm lau, a character portrait, sots art, sharp focus, smooth, aesthetic, extremely detailed, octane render,solo, dark industrial background, rtx, rock clothes, cinematic light, intricate detail, highly detailed, high res, detailed facial features",
|
121 |
-
"portrait photograph" , "realistic" , "concept art" , "elegant, highly detailed" , "intricate, sharp focus, depth of field, f/1. 8, 85mm, medium shot, mid shot, (((professionally color graded)))" ," sharp focus, bright soft diffused light" , "(volumetric fog),",
|
122 |
-
"Cinematic film still" ," (dark city street:1.2)" , "(cold colors), damp, moist, intricate details" ,"shallow depth of field, [volumetric fog]" , "cinematic lighting, reflections, photographed on a Canon EOS R5, 50mm lens, F/2.8, HDR, 8k resolution" , "cinematic film still from cyberpunk movie" , "volumetric fog, (RAW, analog, masterpiece, best quality, soft particles, 8k, flawless perfect face, intricate details" , "trending on artstation, trending on cgsociety, dlsr, ultra sharp, hdr, rtx, antialiasing, canon 5d foto))" , "((skin details, high detailed skin texture))" , "(((perfect face))), (perfect eyes)))",
|
123 |
-
|
124 |
# Add other prompt options here...
|
125 |
]
|
126 |
|
|
|
17 |
|
18 |
app = FastAPI()
|
19 |
|
20 |
+
API_URL = "https://api-inference.huggingface.co/models/jayavibhav/anime-dreamlike"
|
21 |
API_TOKEN = os.getenv("HF_READ_TOKEN") # it is free
|
22 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
23 |
|
|
|
26 |
|
27 |
|
28 |
text_gen = gr.Interface.load("models/Gustavosta/MagicPrompt-Stable-Diffusion")
|
29 |
+
|
30 |
|
31 |
queue = Queue()
|
32 |
queue_threshold = 100
|
|
|
110 |
timestamp = f"{time.time()}_{request_counter}"
|
111 |
|
112 |
options = [
|
113 |
+
"photo anime, masterpiece, high quality, absurdres, "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
# Add other prompt options here...
|
115 |
]
|
116 |
|