Max Reimann
commited on
Commit
·
4b98912
1
Parent(s):
c9174f6
fix page switch error due to emoji
Browse files
Whitebox_style_transfer.py
CHANGED
|
@@ -18,6 +18,7 @@ import streamlit as st
|
|
| 18 |
from streamlit.logger import get_logger
|
| 19 |
from st_click_detector import click_detector
|
| 20 |
import streamlit.components.v1 as components
|
|
|
|
| 21 |
from streamlit_extras.switch_page_button import switch_page
|
| 22 |
|
| 23 |
from demo_config import HUGGING_FACE
|
|
@@ -283,7 +284,11 @@ with coll2:
|
|
| 283 |
|
| 284 |
edit_locally_btn = st.button("Edit Local Parameter Maps")
|
| 285 |
if edit_locally_btn:
|
| 286 |
-
switch_page(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 287 |
|
| 288 |
img_res = render_effect(effect, content_img, vp)
|
| 289 |
|
|
|
|
| 18 |
from streamlit.logger import get_logger
|
| 19 |
from st_click_detector import click_detector
|
| 20 |
import streamlit.components.v1 as components
|
| 21 |
+
from streamlit.source_util import get_pages
|
| 22 |
from streamlit_extras.switch_page_button import switch_page
|
| 23 |
|
| 24 |
from demo_config import HUGGING_FACE
|
|
|
|
| 284 |
|
| 285 |
edit_locally_btn = st.button("Edit Local Parameter Maps")
|
| 286 |
if edit_locally_btn:
|
| 287 |
+
switch_page('️ local edits')
|
| 288 |
+
|
| 289 |
+
apply_presets = st.button("Paint Presets")
|
| 290 |
+
if apply_presets:
|
| 291 |
+
switch_page("Apply_preset")
|
| 292 |
|
| 293 |
img_res = render_effect(effect, content_img, vp)
|
| 294 |
|