Spaces:
Runtime error
Runtime error
File size: 428 Bytes
904b5c2 fee24ea |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import streamlit as st
def main():
st.title("Python 3 Code Generator")
st.text("Enter your code below:")
code = st.text_area("", height=600)
if st.button("Generate"):
with open("code.py", "w") as f:
f.write(code)
st.success("Code generated successfully!")
if __name__ == "__main__":
main()
import streamlit as st
st.write("The code here is,",(code), text_color="blue") |