llamameta's picture
Create app.py
d54a8cb verified
raw
history blame contribute delete
304 Bytes
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)