3mrology commited on
Commit
1f861e3
1 Parent(s): 4e0641f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -1
app.py CHANGED
@@ -1,5 +1,26 @@
1
  import gradio as gr
2
- from diffusers import DiffusionPipeline
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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):