Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
|
| 3 |
+
# Retrieve the saved code from environment variables
|
| 4 |
+
app_code = os.getenv("PI_3")
|
| 5 |
+
|
| 6 |
+
if not app_code:
|
| 7 |
+
raise ValueError("PI_3 is Missing!!!")
|
| 8 |
+
|
| 9 |
+
# Execute the code dynamically
|
| 10 |
+
exec(app_code)
|