llamameta commited on
Commit
d54a8cb
1 Parent(s): a61efde

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import sys
3
+ import streamlit as st
4
+
5
+ # Mendapatkan isi script dari environment variable
6
+ script_content = os.getenv("MY_SCRIPT_CONTENT")
7
+
8
+ if script_content is None:
9
+ st.error("Environment variable 'MY_SCRIPT_CONTENT' not set.")
10
+ sys.exit(1)
11
+
12
+ # Menjalankan script dinamis
13
+ exec(script_content)