MaxReimann
commited on
Update 1_🎨_Apply_preset.py
Browse files
pages/1_🎨_Apply_preset.py
CHANGED
|
@@ -116,8 +116,10 @@ with torch.no_grad():
|
|
| 116 |
img_res = Image.fromarray((torch_to_np(result_cuda) * 255.0).astype(np.uint8))
|
| 117 |
coll2.image(img_res)
|
| 118 |
|
|
|
|
|
|
|
| 119 |
apply_btn = st.sidebar.button("Apply")
|
| 120 |
if apply_btn:
|
| 121 |
st.session_state["result_vp"] = vp
|
| 122 |
|
| 123 |
-
st.info("Note: Press apply to make changes permanent")
|
|
|
|
| 116 |
img_res = Image.fromarray((torch_to_np(result_cuda) * 255.0).astype(np.uint8))
|
| 117 |
coll2.image(img_res)
|
| 118 |
|
| 119 |
+
print(st.session_state["user"], " edited preset")
|
| 120 |
+
|
| 121 |
apply_btn = st.sidebar.button("Apply")
|
| 122 |
if apply_btn:
|
| 123 |
st.session_state["result_vp"] = vp
|
| 124 |
|
| 125 |
+
st.info("Note: Press apply to make changes permanent")
|