Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,26 @@
|
|
1 |
import gradio as gr
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
pipeline = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5")
|
5 |
def generate(prompt):
|
|
|
1 |
import gradio as gr
|
2 |
+
import torch
|
3 |
+
import gradio as gr
|
4 |
+
from PIL import Image
|
5 |
+
import qrcode
|
6 |
+
from pathlib import Path
|
7 |
+
from multiprocessing import cpu_count
|
8 |
+
import requests
|
9 |
+
import io
|
10 |
+
import os
|
11 |
+
from PIL import Image
|
12 |
+
|
13 |
+
from diffusers import (
|
14 |
+
DiffusionPipeline
|
15 |
+
StableDiffusionPipeline,
|
16 |
+
StableDiffusionControlNetImg2ImgPipeline,
|
17 |
+
ControlNetModel,
|
18 |
+
DDIMScheduler,
|
19 |
+
DPMSolverMultistepScheduler,
|
20 |
+
DEISMultistepScheduler,
|
21 |
+
HeunDiscreteScheduler,
|
22 |
+
EulerDiscreteScheduler,
|
23 |
+
)
|
24 |
|
25 |
pipeline = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5")
|
26 |
def generate(prompt):
|