Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,8 @@ MODEL_LIST = [
|
|
15 |
"stabilityai/stable-diffusion-xl-base-1.0",
|
16 |
"prompthero/openjourney-v4",
|
17 |
"nerijs/pixel-art-xl",
|
18 |
-
"Linaqruf/anything-v3.0"
|
|
|
19 |
]
|
20 |
API_TOKEN = os.getenv("HF_READ_TOKEN") # Make sure to set your Hugging Face token
|
21 |
HEADERS = {"Authorization": f"Bearer {API_TOKEN}"}
|
@@ -67,6 +68,15 @@ with gr.Blocks(theme="soft") as playground:
|
|
67 |
with gr.Accordion("Advanced settings", open=False):
|
68 |
negative_prompt = gr.Textbox(label="Negative Prompt", value="text, blurry, fuzziness", lines=1, elem_id="negative-prompt-text-input")
|
69 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
text_button.click(query, inputs=[text_prompt, model_dropdown, negative_prompt], outputs=image_output)
|
71 |
|
72 |
playground.launch(show_api=False)
|
|
|
15 |
"stabilityai/stable-diffusion-xl-base-1.0",
|
16 |
"prompthero/openjourney-v4",
|
17 |
"nerijs/pixel-art-xl",
|
18 |
+
"Linaqruf/anything-v3.0",
|
19 |
+
"playgroundai/playground-v2-1024px-aesthetic"
|
20 |
]
|
21 |
API_TOKEN = os.getenv("HF_READ_TOKEN") # Make sure to set your Hugging Face token
|
22 |
HEADERS = {"Authorization": f"Bearer {API_TOKEN}"}
|
|
|
68 |
with gr.Accordion("Advanced settings", open=False):
|
69 |
negative_prompt = gr.Textbox(label="Negative Prompt", value="text, blurry, fuzziness", lines=1, elem_id="negative-prompt-text-input")
|
70 |
|
71 |
+
gr.HTML(
|
72 |
+
"""
|
73 |
+
<h2>Notes:</h2>
|
74 |
+
<p>
|
75 |
+
SDXL based models may take longer to generate than older models.
|
76 |
+
</p>
|
77 |
+
"""
|
78 |
+
)
|
79 |
+
|
80 |
text_button.click(query, inputs=[text_prompt, model_dropdown, negative_prompt], outputs=image_output)
|
81 |
|
82 |
playground.launch(show_api=False)
|