Spaces:
Running
Running
Update index.html
Browse files- index.html +6 -0
index.html
CHANGED
|
@@ -18,6 +18,12 @@
|
|
| 18 |
</style>
|
| 19 |
</head>
|
| 20 |
<body>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
<gradio-lite>
|
| 22 |
<gradio-file name="app.py" entrypoint>
|
| 23 |
import gradio as gr
|
|
|
|
| 18 |
</style>
|
| 19 |
</head>
|
| 20 |
<body>
|
| 21 |
+
from diffusers import ControlNetModel, StableDiffusionControlNetPipeline
|
| 22 |
+
|
| 23 |
+
controlnet = ControlNetModel.from_pretrained("XLabs-AI/flux-ip-adapter")
|
| 24 |
+
pipeline = StableDiffusionControlNetPipeline.from_pretrained(
|
| 25 |
+
"fill-in-base-model", controlnet=controlnet
|
| 26 |
+
)
|
| 27 |
<gradio-lite>
|
| 28 |
<gradio-file name="app.py" entrypoint>
|
| 29 |
import gradio as gr
|