Spaces:
Runtime error
Runtime error
matrixglitch
commited on
Commit
•
7cb9b75
1
Parent(s):
ba17e55
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,12 @@ from PIL import Image
|
|
9 |
import numpy as np
|
10 |
from io import BytesIO
|
11 |
import os
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
source_img = gr.Image(source="upload", type="filepath", label="init_img | 512*512 px")
|
15 |
gallery = gr.Gallery(label="Generated images", show_label=False, elem_id="gallery").style(grid=[2], height="auto")
|
|
|
9 |
import numpy as np
|
10 |
from io import BytesIO
|
11 |
import os
|
12 |
+
import torch
|
13 |
+
from torch import autocast
|
14 |
+
from diffusers import StableDiffusionPipeline
|
15 |
+
from datasets import load_dataset
|
16 |
+
from PIL import Image
|
17 |
+
import re
|
18 |
|
19 |
source_img = gr.Image(source="upload", type="filepath", label="init_img | 512*512 px")
|
20 |
gallery = gr.Gallery(label="Generated images", show_label=False, elem_id="gallery").style(grid=[2], height="auto")
|