Spaces:
Sleeping
Sleeping
amazonaws-sp
commited on
Commit
•
9289620
1
Parent(s):
2ec55b8
Update app.py
Browse files
app.py
CHANGED
@@ -2,14 +2,16 @@
|
|
2 |
|
3 |
from __future__ import annotations
|
4 |
|
|
|
5 |
import os
|
6 |
import random
|
7 |
|
8 |
import gradio as gr
|
9 |
import numpy as np
|
10 |
-
import PIL.Image
|
11 |
import spaces
|
12 |
import torch
|
|
|
|
|
13 |
from diffusers import AutoencoderKL, DiffusionPipeline, StableDiffusionImg2ImgPipeline
|
14 |
|
15 |
DESCRIPTION = "# Run any LoRA or SD Model"
|
|
|
2 |
|
3 |
from __future__ import annotations
|
4 |
|
5 |
+
import requests
|
6 |
import os
|
7 |
import random
|
8 |
|
9 |
import gradio as gr
|
10 |
import numpy as np
|
|
|
11 |
import spaces
|
12 |
import torch
|
13 |
+
from PIL import Image
|
14 |
+
from io import BytesIO
|
15 |
from diffusers import AutoencoderKL, DiffusionPipeline, StableDiffusionImg2ImgPipeline
|
16 |
|
17 |
DESCRIPTION = "# Run any LoRA or SD Model"
|