iimran commited on
Commit
f66bc43
·
verified ·
1 Parent(s): 27fb0ec

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py ADDED
@@ -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)