Spaces:
Runtime error
Runtime error
Download app.py from SusiePHaltmann/NaturalLanguage2Python3: direct link, hf CLI and curl.
- Browser
- Download file 428 Bytes
-
https://huggingface.co/spaces/SusiePHaltmann/NaturalLanguage2Python3/resolve/fee24eab57206e4dc20c44e2e99f812e462d3867/app.py
- Command line
-
hf download hf://spaces/SusiePHaltmann/NaturalLanguage2Python3@fee24eab57206e4dc20c44e2e99f812e462d3867/app.py
-
curl -L -o app.py https://huggingface.co/spaces/SusiePHaltmann/NaturalLanguage2Python3/resolve/fee24eab57206e4dc20c44e2e99f812e462d3867/app.py
428 Bytes
| 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") |