Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
MagicFaceLab
/
V_FACESWAP
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
MagicFaceLab
commited on
Feb 14, 2025
Commit
6c4c4f7
·
verified
·
1 Parent(s):
ee2deb7
Update app.py
Browse files
Files changed (1)
hide
show
app.py
+5
-2
app.py
CHANGED
Viewed
@@ -1,4 +1,7 @@
1
import os
2
3
-
4
-
exec(os.environ.get('CODE'))
1
import os
2
3
+
code = os.environ.get('CODE')
4
+
if code:
5
+
exec(code)
6
+
else:
7
+
print("Error: CODE environment variable is not set.")