Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,19 @@
|
|
1 |
import streamlit as st
|
2 |
-
import streamlit as st
|
3 |
import sys
|
4 |
import io
|
5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
def execute_code(code, user_input=""):
|
7 |
"""Execute the given code with simulated input and return the output."""
|
8 |
old_stdout = sys.stdout # Backup original stdout
|
|
|
1 |
import streamlit as st
|
|
|
2 |
import sys
|
3 |
import io
|
4 |
|
5 |
+
# Inject custom CSS to set light blue background
|
6 |
+
st.markdown(
|
7 |
+
"""
|
8 |
+
<style>
|
9 |
+
body {
|
10 |
+
background-color: #e6f2ff;
|
11 |
+
}
|
12 |
+
</style>
|
13 |
+
""",
|
14 |
+
unsafe_allow_html=True
|
15 |
+
)
|
16 |
+
|
17 |
def execute_code(code, user_input=""):
|
18 |
"""Execute the given code with simulated input and return the output."""
|
19 |
old_stdout = sys.stdout # Backup original stdout
|