Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,27 +1,26 @@
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
-
|
3 |
-
import torch
|
4 |
import os
|
5 |
-
import
|
|
|
|
|
|
|
|
|
|
|
6 |
import time
|
|
|
7 |
from PIL import Image
|
8 |
-
import re
|
9 |
-
import base64
|
10 |
from io import BytesIO
|
11 |
-
import
|
12 |
-
import
|
13 |
|
14 |
try:
|
15 |
import intel_extension_for_pytorch as ipex
|
16 |
except:
|
17 |
pass
|
18 |
|
19 |
-
from PIL import Image
|
20 |
-
import numpy as np
|
21 |
-
import gradio as gr
|
22 |
-
import psutil
|
23 |
-
import time
|
24 |
-
|
25 |
SAFETY_CHECKER = os.environ.get("SAFETY_CHECKER", None)
|
26 |
TORCH_COMPILE = os.environ.get("TORCH_COMPILE", None)
|
27 |
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
|
|
1 |
+
import base64
|
2 |
+
import datetime
|
3 |
import gradio as gr
|
4 |
+
import numpy as np
|
|
|
5 |
import os
|
6 |
+
import pytz
|
7 |
+
import psutil
|
8 |
+
import re
|
9 |
+
import random
|
10 |
+
import torch
|
11 |
+
import time
|
12 |
import time
|
13 |
+
|
14 |
from PIL import Image
|
|
|
|
|
15 |
from io import BytesIO
|
16 |
+
from PIL import Image
|
17 |
+
from diffusers import DiffusionPipeline, LCMScheduler, AutoencoderTiny
|
18 |
|
19 |
try:
|
20 |
import intel_extension_for_pytorch as ipex
|
21 |
except:
|
22 |
pass
|
23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
SAFETY_CHECKER = os.environ.get("SAFETY_CHECKER", None)
|
25 |
TORCH_COMPILE = os.environ.get("TORCH_COMPILE", None)
|
26 |
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|