Spaces:
Runtime error
Runtime error
Commit
·
a133cc3
1
Parent(s):
f0e64d7
fix
Browse files
app.py
CHANGED
@@ -3,8 +3,6 @@ import streamlit as st
|
|
3 |
import numpy as np
|
4 |
from PIL import Image
|
5 |
|
6 |
-
from transformer_utils.util.tfm_utils import get_local_path_from_huggingface_cdn
|
7 |
-
|
8 |
# constants
|
9 |
HF_REPO_NAME_DIFFUSION = 'nostalgebraist/nostalgebraist-autoresponder-diffusion'
|
10 |
model_path_diffusion = 'nostalgebraist-autoresponder-diffusion'
|
@@ -30,6 +28,7 @@ def setup():
|
|
30 |
sys.path.append("improved-diffusion")
|
31 |
|
32 |
import improved_diffusion.pipeline
|
|
|
33 |
|
34 |
if not os.path.exists(model_path_diffusion):
|
35 |
model_tar_name = 'model.tar'
|
|
|
3 |
import numpy as np
|
4 |
from PIL import Image
|
5 |
|
|
|
|
|
6 |
# constants
|
7 |
HF_REPO_NAME_DIFFUSION = 'nostalgebraist/nostalgebraist-autoresponder-diffusion'
|
8 |
model_path_diffusion = 'nostalgebraist-autoresponder-diffusion'
|
|
|
28 |
sys.path.append("improved-diffusion")
|
29 |
|
30 |
import improved_diffusion.pipeline
|
31 |
+
from transformer_utils.util.tfm_utils import get_local_path_from_huggingface_cdn
|
32 |
|
33 |
if not os.path.exists(model_path_diffusion):
|
34 |
model_tar_name = 'model.tar'
|