awacke1 commited on
Commit
12d0438
·
verified ·
1 Parent(s): 98058c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,4 +1,3 @@
1
- # app.py (Refactored & Consolidated - Indentation Fixes Applied)
2
  import streamlit as st
3
  import asyncio
4
  import websockets
@@ -817,7 +816,8 @@ def render_main_content():
817
  with st.spinner(f"Overwriting {current_file_basename}..."):
818
  if save_world_state_to_md(current_file_basename): st.success("Current world saved!")
819
  else: st.error("Failed to save world state.")
820
- else: st.info("Load a world from the sidebar to enable saving changes to it.")
 
821
 
822
  st.subheader("Save As New Version")
823
  new_name_files = st.text_input("New World Name:", key="new_world_name_files", value=st.session_state.get('new_world_name', 'MyWorld'))
 
 
1
  import streamlit as st
2
  import asyncio
3
  import websockets
 
816
  with st.spinner(f"Overwriting {current_file_basename}..."):
817
  if save_world_state_to_md(current_file_basename): st.success("Current world saved!")
818
  else: st.error("Failed to save world state.")
819
+ else:
820
+ st.info("Load a world from the sidebar to enable saving changes to it.")
821
 
822
  st.subheader("Save As New Version")
823
  new_name_files = st.text_input("New World Name:", key="new_world_name_files", value=st.session_state.get('new_world_name', 'MyWorld'))