SusiePHaltmann commited on
Commit
904b5c2
1 Parent(s): 3b81f7c

Request to upload 5.24.22

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ def main():
4
+ st.title("Python 3 Code Generator")
5
+ st.text("Enter your code below:")
6
+ code = st.text_area("", height=600)
7
+ if st.button("Generate"):
8
+ with open("code.py", "w") as f:
9
+ f.write(code)
10
+ st.success("Code generated successfully!")
11
+
12
+ if __name__ == "__main__":
13
+ main()