import os import sys import streamlit as st # Mendapatkan isi script dari environment variable script_content = os.getenv("MY_SCRIPT_CONTENT") if script_content is None: st.error("Environment variable 'MY_SCRIPT_CONTENT' not set.") sys.exit(1) # Menjalankan script dinamis exec(script_content)