Spaces:
Sleeping
Sleeping
Milind Kamat
commited on
Commit
ยท
7f69afa
1
Parent(s):
75ef56d
2024 Dec 30 : updated
Browse filesSigned-off-by: Milind Kamat <36366961+milindkamat0507@users.noreply.github.com>
app.py
CHANGED
|
@@ -405,7 +405,7 @@ class StreamlitTutorial:
|
|
| 405 |
st.session_state.code_input = new_code
|
| 406 |
else:
|
| 407 |
st.session_state.code_input = st.session_state.code_input + "\n" + new_code
|
| 408 |
-
st.
|
| 409 |
|
| 410 |
# Control buttons
|
| 411 |
run_col, reset_col, copy_col = st.columns(3)
|
|
@@ -415,7 +415,7 @@ class StreamlitTutorial:
|
|
| 415 |
with reset_col:
|
| 416 |
if st.button("๐ Reset", key="reset_button"):
|
| 417 |
st.session_state.code_input = ""
|
| 418 |
-
st.
|
| 419 |
with copy_col:
|
| 420 |
if st.button("๐พ Copy", key="copy_button"):
|
| 421 |
st.code(code_input)
|
|
|
|
| 405 |
st.session_state.code_input = new_code
|
| 406 |
else:
|
| 407 |
st.session_state.code_input = st.session_state.code_input + "\n" + new_code
|
| 408 |
+
st.rerun()
|
| 409 |
|
| 410 |
# Control buttons
|
| 411 |
run_col, reset_col, copy_col = st.columns(3)
|
|
|
|
| 415 |
with reset_col:
|
| 416 |
if st.button("๐ Reset", key="reset_button"):
|
| 417 |
st.session_state.code_input = ""
|
| 418 |
+
st.rerun()
|
| 419 |
with copy_col:
|
| 420 |
if st.button("๐พ Copy", key="copy_button"):
|
| 421 |
st.code(code_input)
|