()
| 40 | |
| 41 | |
| 42 | def main(): |
| 43 | st.title("Flowchart generator from code") |
| 44 | |
| 45 | # Add a text input box for the Python code |
| 46 | code = st.text_area("Enter your Python code here:", max_chars=5000) |
| 47 | # Add a submit button |
| 48 | if st.button("Run Code"): |
| 49 | # Run the Python code and display the output |
| 50 | output = generate_output(code) |
| 51 | st.image(output, caption="Generated Image", use_column_width=True) |
| 52 | |
| 53 | |
| 54 | main() |
no test coverage detected