Spaces:
Running
on
Zero
Running
on
Zero
Richard Neuschulz
commited on
Commit
·
36f26ce
1
Parent(s):
d3eb9b5
updated app.py
Browse filesRefactor imports and tweak demo text in app.py
app.py
CHANGED
@@ -1,12 +1,9 @@
|
|
1 |
import torch
|
2 |
import spaces
|
3 |
-
from diffusers import
|
4 |
-
from transformers import AutoFeatureExtractor
|
5 |
-
from diffusers.pipelines.stable_diffusion.safety_checker import StableDiffusionSafetyChecker
|
6 |
import ipown
|
7 |
from huggingface_hub import hf_hub_download
|
8 |
from insightface.app import FaceAnalysis
|
9 |
-
from insightface.utils import face_align
|
10 |
import gradio as gr
|
11 |
import cv2
|
12 |
|
@@ -77,7 +74,7 @@ h1{margin-bottom: 0 !important}
|
|
77 |
'''
|
78 |
with gr.Blocks(css=css) as demo:
|
79 |
gr.Markdown("# IP-Adapter-FaceID SDXL demo")
|
80 |
-
gr.Markdown("My own Demo for the [h94/IP-Adapter-FaceID SDXL model](https://huggingface.co/h94/IP-Adapter-FaceID). I have no idea what I am doing, but you should run this on at least 24 GB of VRAM")
|
81 |
with gr.Row():
|
82 |
with gr.Column():
|
83 |
files = gr.Files(
|
|
|
1 |
import torch
|
2 |
import spaces
|
3 |
+
from diffusers import DDIMScheduler, StableDiffusionXLPipeline
|
|
|
|
|
4 |
import ipown
|
5 |
from huggingface_hub import hf_hub_download
|
6 |
from insightface.app import FaceAnalysis
|
|
|
7 |
import gradio as gr
|
8 |
import cv2
|
9 |
|
|
|
74 |
'''
|
75 |
with gr.Blocks(css=css) as demo:
|
76 |
gr.Markdown("# IP-Adapter-FaceID SDXL demo")
|
77 |
+
gr.Markdown("My own Demo for the [h94/IP-Adapter-FaceID SDXL model](https://huggingface.co/h94/IP-Adapter-FaceID). I have no idea what I am doing, but you should run this on at least 24 GB of VRAM.")
|
78 |
with gr.Row():
|
79 |
with gr.Column():
|
80 |
files = gr.Files(
|