Thafx commited on
Commit
8609e3f
1 Parent(s): 46d536a

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +36 -0
app.py ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import gradio as gr
3
+
4
+ API_KEY=os.environ.get('HUGGING_FACE_HUB_TOKEN', None)
5
+
6
+ article = """---
7
+ This space was created using [SD Space Creator](https://huggingface.co/spaces/anzorq/sd-space-creator)."""
8
+
9
+ gr.Interface.load(
10
+ name="models/SG161222/Realistic_Vision_V1.3",
11
+ title="""Realistic Vision V1.3""",
12
+ description="""Demo for <a href="https://huggingface.co/SG161222/Realistic_Vision_V1.3">Realistic Vision V1.3</a> Stable Diffusion model by "Eugene".
13
+
14
+ Please use this prompt template to get the desired generation results:
15
+
16
+ Prompt:
17
+ RAW photo, *subject*, (high detailed skin:1.2), 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3
18
+
19
+ 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
20
+
21
+
22
+ Negative Prompt:
23
+ (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
24
+
25
+ Euler a with 25 steps
26
+ CFG Scale 7
27
+ Hires. fix with R-ESRGAN General WDN 4xV3 upscaler
28
+ 25 Hires steps and Denoising strength 0.25-0.7
29
+ or
30
+ 10 Hires steps and Denoising strength 0.025-0.1 for save more details
31
+
32
+ Have Fun & Enjoy
33
+ //THAFX""",
34
+ article=article,
35
+ api_key=API_KEY,
36
+ ).queue(concurrency_count=20).launch()