Update app.py
Browse files
app.py
CHANGED
|
@@ -3,8 +3,8 @@ import gradio as gr
|
|
| 3 |
import torch
|
| 4 |
from PIL import Image
|
| 5 |
|
| 6 |
-
model_id = '
|
| 7 |
-
prefix = '
|
| 8 |
|
| 9 |
scheduler = DPMSolverMultistepScheduler.from_pretrained(model_id, subfolder="scheduler")
|
| 10 |
|
|
@@ -107,11 +107,11 @@ with gr.Blocks(css=css) as demo:
|
|
| 107 |
f"""
|
| 108 |
<div class="main-div">
|
| 109 |
<div>
|
| 110 |
-
<h1 style="color:orange;">📷
|
| 111 |
</div>
|
| 112 |
<p>
|
| 113 |
-
Demo for <a href="https://huggingface.co/
|
| 114 |
-
Stable Diffusion model by <a href="https://huggingface.co/
|
| 115 |
Running on {"<b>GPU 🔥</b>" if torch.cuda.is_available() else f"<b>CPU ⚡</b>"}.
|
| 116 |
</p>
|
| 117 |
<p>Please use the prompt template below to get an example of the desired generation results:
|
|
@@ -119,22 +119,17 @@ with gr.Blocks(css=css) as demo:
|
|
| 119 |
|
| 120 |
<b>Prompt</b>:
|
| 121 |
<details><code>
|
| 122 |
-
RAW photo, * subject *, (high detailed skin:1.2), 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3
|
| 123 |
-
<br>
|
| 124 |
-
<br>
|
| 125 |
<q><i>
|
| 126 |
-
Example:
|
| 127 |
-
|
| 128 |
</i></q>
|
| 129 |
</code></details>
|
| 130 |
|
| 131 |
<br>
|
| 132 |
<b>Negative Prompt</b>:
|
| 133 |
<details><code>
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, <br>
|
| 137 |
-
extra legs, fused fingers, too many fingers, long neck
|
| 138 |
</code></details>
|
| 139 |
|
| 140 |
<br>
|
|
|
|
| 3 |
import torch
|
| 4 |
from PIL import Image
|
| 5 |
|
| 6 |
+
model_id = 'Cosmo-Hug/FeverDream'
|
| 7 |
+
prefix = ''
|
| 8 |
|
| 9 |
scheduler = DPMSolverMultistepScheduler.from_pretrained(model_id, subfolder="scheduler")
|
| 10 |
|
|
|
|
| 107 |
f"""
|
| 108 |
<div class="main-div">
|
| 109 |
<div>
|
| 110 |
+
<h1 style="color:orange;">📷 Fever Dream 📸</h1>
|
| 111 |
</div>
|
| 112 |
<p>
|
| 113 |
+
Demo for <a href="https://huggingface.co/Cosmo-Hug/FeverDream">Fever Dream</a>
|
| 114 |
+
Stable Diffusion model by <a href="https://huggingface.co/Cosmo-Hug/"><abbr title="Cosmo-Hug">Cosmo-Hug</abbr></a>. {"" if prefix else ""}
|
| 115 |
Running on {"<b>GPU 🔥</b>" if torch.cuda.is_available() else f"<b>CPU ⚡</b>"}.
|
| 116 |
</p>
|
| 117 |
<p>Please use the prompt template below to get an example of the desired generation results:
|
|
|
|
| 119 |
|
| 120 |
<b>Prompt</b>:
|
| 121 |
<details><code>
|
|
|
|
|
|
|
|
|
|
| 122 |
<q><i>
|
| 123 |
+
Example: close up of a young woman wearing a black and gold liquid splash dress, pretty face, detailed eyes, soft lips, floating in outer space and planets in the background,
|
| 124 |
+
fluid, wet, dripping, waxy, smooth, realistic, octane render
|
| 125 |
</i></q>
|
| 126 |
</code></details>
|
| 127 |
|
| 128 |
<br>
|
| 129 |
<b>Negative Prompt</b>:
|
| 130 |
<details><code>
|
| 131 |
+
two, few, couple, group, lowres, text, error, cropped, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, out of frame,
|
| 132 |
+
dehydrated, extra limbs, clone, disfigured, gross, malformed, extra arms, extra legs, fingers, long neck, username, watermark, signature
|
|
|
|
|
|
|
| 133 |
</code></details>
|
| 134 |
|
| 135 |
<br>
|