Spaces:
Runtime error
Runtime error
update
Browse files
app.py
CHANGED
@@ -98,16 +98,16 @@ if __name__ == '__main__':
|
|
98 |
|
99 |
st.title("Stable Edit - Edit your photos with Stable Diffusion!")
|
100 |
|
101 |
-
|
102 |
-
filename = st.file_uploader("upload an image")
|
103 |
-
|
104 |
-
sf = st.text_input("Please enter resizing scale factor to downsize image (default = 2)", value="2")
|
105 |
try:
|
106 |
sf = int(sf)
|
107 |
except:
|
108 |
sf.write("Error with input scale factor, setting to default value of 2, please re-enter above to change it")
|
109 |
sf = 2
|
110 |
|
|
|
|
|
|
|
111 |
if filename:
|
112 |
image = Image.open(filename)
|
113 |
|
|
|
98 |
|
99 |
st.title("Stable Edit - Edit your photos with Stable Diffusion!")
|
100 |
|
101 |
+
sf = st.text_input("Please enter resizing scale factor to downsize image (default=2)", value="2")
|
|
|
|
|
|
|
102 |
try:
|
103 |
sf = int(sf)
|
104 |
except:
|
105 |
sf.write("Error with input scale factor, setting to default value of 2, please re-enter above to change it")
|
106 |
sf = 2
|
107 |
|
108 |
+
# upload image
|
109 |
+
filename = st.file_uploader("upload an image")
|
110 |
+
|
111 |
if filename:
|
112 |
image = Image.open(filename)
|
113 |
|