Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,9 @@
|
|
1 |
import os
|
2 |
|
3 |
-
|
4 |
-
|
5 |
-
|
|
|
|
|
|
|
|
|
|
1 |
import os
|
2 |
|
3 |
+
def is_running_in_huggingface_space():
|
4 |
+
return "SPACE_ID" in os.environ
|
5 |
+
|
6 |
+
if is_running_in_huggingface_space():
|
7 |
+
print("The script is running in a Hugging Face Space.")
|
8 |
+
else:
|
9 |
+
print("The script is not running in a Hugging Face Space.")
|