Spaces:
Runtime error
Runtime error
commented out import ste
Browse files
ex_app.py
CHANGED
@@ -5,7 +5,7 @@ import random
|
|
5 |
import numpy as np
|
6 |
from PIL import Image, ImageEnhance
|
7 |
from io import BytesIO
|
8 |
-
import streamlit_ext as ste #for download button not to rerun
|
9 |
from huggingface_hub import upload_file
|
10 |
|
11 |
HF_TOKEN = os.environ.get("HF_TOKEN")
|
@@ -84,7 +84,7 @@ if uploaded_file is not None:
|
|
84 |
)
|
85 |
|
86 |
byte_im = buf.getvalue()
|
87 |
-
run =ste.download_button(button_text="Download Image", data=byte_im, download_filename='afrodreams.jpg', mime="image/png")
|
88 |
#keeping the current style by update the weight
|
89 |
keep_style = st.sidebar.checkbox("Keep current style")
|
90 |
|
|
|
5 |
import numpy as np
|
6 |
from PIL import Image, ImageEnhance
|
7 |
from io import BytesIO
|
8 |
+
#import streamlit_ext as ste #for download button not to rerun
|
9 |
from huggingface_hub import upload_file
|
10 |
|
11 |
HF_TOKEN = os.environ.get("HF_TOKEN")
|
|
|
84 |
)
|
85 |
|
86 |
byte_im = buf.getvalue()
|
87 |
+
#run =ste.download_button(button_text="Download Image", data=byte_im, download_filename='afrodreams.jpg', mime="image/png")
|
88 |
#keeping the current style by update the weight
|
89 |
keep_style = st.sidebar.checkbox("Keep current style")
|
90 |
|