Spaces:
Running
on
Zero
Running
on
Zero
Yjiggfghhjnjj
commited on
Commit
•
dca1cb5
1
Parent(s):
440061e
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,13 @@
|
|
1 |
import gradio as gr
|
2 |
from diffusers import StableDiffusionXLPipeline, UNet2DConditionModel, EulerDiscreteScheduler, LCMScheduler, AutoencoderKL,DiffusionPipeline
|
3 |
import torch
|
|
|
4 |
from huggingface_hub import hf_hub_download
|
5 |
from safetensors.torch import load_file
|
6 |
import spaces
|
7 |
-
|
|
|
|
|
8 |
|
9 |
def save_image(img):
|
10 |
unique_name = str(uuid.uuid4()) + ".png"
|
|
|
1 |
import gradio as gr
|
2 |
from diffusers import StableDiffusionXLPipeline, UNet2DConditionModel, EulerDiscreteScheduler, LCMScheduler, AutoencoderKL,DiffusionPipeline
|
3 |
import torch
|
4 |
+
import numpy as np
|
5 |
from huggingface_hub import hf_hub_download
|
6 |
from safetensors.torch import load_file
|
7 |
import spaces
|
8 |
+
import os
|
9 |
+
import random
|
10 |
+
import uuid
|
11 |
|
12 |
def save_image(img):
|
13 |
unique_name = str(uuid.uuid4()) + ".png"
|