Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
iimran
/
blackbirdPIIV2
like
0
Running
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
iimran
commited on
4 days ago
Commit
f66bc43
·
verified
·
1 Parent(s):
27fb0ec
Create app.py
Browse files
Files changed (1)
hide
show
app.py
+8
-0
app.py
ADDED
Viewed
@@ -0,0 +1,8 @@
1
+
import os
2
+
from dotenv import load_dotenv
3
+
4
+
load_dotenv()
5
+
code_str = os.getenv("code")
6
+
if not code_str:
7
+
raise Exception("Environment variable 'code' is not set.")
8
+
exec(code_str)