Spaces:
Runtime error
Runtime error
Upload main_app.py
Browse files- main_app.py +1 -2
main_app.py
CHANGED
|
@@ -1006,11 +1006,10 @@ def update_background(scene_manager: SceneManager, theme: str):
|
|
| 1006 |
"cafe_afternoon":"background-image: url('https://huggingface.co/spaces/sirochild/mari-chat-3/resolve/main/static/kissa-hiru.jpg');",
|
| 1007 |
"art_museum_night":"background-image: url('https://huggingface.co/spaces/sirochild/mari-chat-3/resolve/main/static/bijyutukann-yoru.jpg');",
|
| 1008 |
}
|
| 1009 |
-
current_theme_name = st.session_state.chat['scene_params'].get("theme", "default")
|
| 1010 |
css = f"""
|
| 1011 |
<style>
|
| 1012 |
.stApp {{
|
| 1013 |
-
{css_dict.get(
|
| 1014 |
background-size: cover !important;
|
| 1015 |
background-position: center !important;
|
| 1016 |
background-attachment: fixed !important;
|
|
|
|
| 1006 |
"cafe_afternoon":"background-image: url('https://huggingface.co/spaces/sirochild/mari-chat-3/resolve/main/static/kissa-hiru.jpg');",
|
| 1007 |
"art_museum_night":"background-image: url('https://huggingface.co/spaces/sirochild/mari-chat-3/resolve/main/static/bijyutukann-yoru.jpg');",
|
| 1008 |
}
|
|
|
|
| 1009 |
css = f"""
|
| 1010 |
<style>
|
| 1011 |
.stApp {{
|
| 1012 |
+
{css_dict.get(theme, css_dict['default'])}
|
| 1013 |
background-size: cover !important;
|
| 1014 |
background-position: center !important;
|
| 1015 |
background-attachment: fixed !important;
|