Spaces:
Runtime error
Runtime error
File size: 346 Bytes
904b5c2 fee24ea 98c5103 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
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()
|