Spaces:
Runtime error
Runtime error
| import streamlit as st | |
| import os | |
| import subprocess | |
| import sys | |
| import time | |
| def write_code(code): | |
| with open('code.py', 'w') as f: | |
| f.write(code) | |
| def run_code(): | |
| subprocess.run(['python', 'code.py']) | |