Update src/streamlit_app.py
Browse files- src/streamlit_app.py +9 -4
src/streamlit_app.py
CHANGED
|
@@ -35,13 +35,18 @@ def execute_code(code_str):
|
|
| 35 |
except Exception as e:
|
| 36 |
st.error(f"Error in hidden code: {e}")
|
| 37 |
|
| 38 |
-
if app_code:
|
| 39 |
-
|
| 40 |
|
| 41 |
-
else:
|
| 42 |
-
|
| 43 |
|
| 44 |
def main():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
st.set_page_config(layout="wide")
|
| 46 |
|
| 47 |
# Sidebar for navigation
|
|
|
|
| 35 |
except Exception as e:
|
| 36 |
st.error(f"Error in hidden code: {e}")
|
| 37 |
|
| 38 |
+
# if app_code:
|
| 39 |
+
# execute_code(app_code)
|
| 40 |
|
| 41 |
+
# else:
|
| 42 |
+
# st.error("APP_CODE is empty. Did you set it?")
|
| 43 |
|
| 44 |
def main():
|
| 45 |
+
if app_code:
|
| 46 |
+
execute_code(app_code)
|
| 47 |
+
|
| 48 |
+
else:
|
| 49 |
+
st.error("APP_CODE is empty. Did you set it?")
|
| 50 |
st.set_page_config(layout="wide")
|
| 51 |
|
| 52 |
# Sidebar for navigation
|