Spaces:
Thafx
/
Runtime error

Thafx commited on
Commit
9fd520a
·
1 Parent(s): 1250e98

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -10
app.py CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
3
  import torch
4
  from PIL import Image
5
 
6
- model_id = 'SG161222/Realistic_Vision_V1.3'
7
  prefix = 'RAW photo,'
8
 
9
  scheduler = DPMSolverMultistepScheduler.from_pretrained(model_id, subfolder="scheduler")
@@ -107,26 +107,24 @@ with gr.Blocks(css=css) as demo:
107
  f"""
108
  <div class="main-div">
109
  <div>
110
- <h1>Realistic Vision V1.3</h1>
111
  </div>
112
  <p>
113
- Demo for <a href="https://huggingface.co/SG161222/Realistic_Vision_V1.3">Realistic Vision V1.3</a> Stable Diffusion model by "Eugene".<br><br>
114
  Please use this prompt template to get the desired generation results:<br>
115
- <h2><b>Prompt</b>:</h2>
116
- <details>
117
  RAW photo, *subject*, (high detailed skin:1.2), 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3
118
- <br><br>
119
  <i>Example: RAW photo, a close up portrait photo of 26 y.o woman in wastelander clothes, long haircut, pale skin, slim body, background is city ruins, (high detailed skin:1.2), 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3
120
  </i>
121
  </details>
122
 
123
- <h2><b>Negative Prompt</b>:</h2>
124
- <details>
125
  (deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck
126
  </details>
127
  <br>
128
- Have Fun & Enjoy
129
- //THAFX<br>
130
  {"" if prefix else ""}
131
  </p>
132
  Running on {"<b>GPU 🔥</b>" if torch.cuda.is_available() else f"<b>CPU 🔥</b>"}.
 
3
  import torch
4
  from PIL import Image
5
 
6
+ model_id = 'SG161222/Realistic_Vision_V1.4'
7
  prefix = 'RAW photo,'
8
 
9
  scheduler = DPMSolverMultistepScheduler.from_pretrained(model_id, subfolder="scheduler")
 
107
  f"""
108
  <div class="main-div">
109
  <div>
110
+ <h1>Realistic Vision V1.4</h1>
111
  </div>
112
  <p>
113
+ Demo for <a href="https://huggingface.co/SG161222/Realistic_Vision_V1.4">Realistic Vision V1.4</a> Stable Diffusion model by "Eugene".<br><br>
114
  Please use this prompt template to get the desired generation results:<br>
115
+ <b>Prompt</b>:<details>
 
116
  RAW photo, *subject*, (high detailed skin:1.2), 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3
117
+ <br>
118
  <i>Example: RAW photo, a close up portrait photo of 26 y.o woman in wastelander clothes, long haircut, pale skin, slim body, background is city ruins, (high detailed skin:1.2), 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3
119
  </i>
120
  </details>
121
 
122
+ <b>Negative Prompt</b>:<details>
 
123
  (deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime:1.4), text, close up, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck
124
  </details>
125
  <br>
126
+ Have Fun & Enjoy //THAFX
127
+ <br>
128
  {"" if prefix else ""}
129
  </p>
130
  Running on {"<b>GPU 🔥</b>" if torch.cuda.is_available() else f"<b>CPU 🔥</b>"}.