tmp / app.py
bluuebunny's picture
Update app.py
7b953a2 verified
raw
history blame contribute delete
254 Bytes
import os
def is_running_in_huggingface_space():
return "SPACE_ID" in os.environ
if is_running_in_huggingface_space():
print("The script is running in a Hugging Face Space.")
else:
print("The script is not running in a Hugging Face Space.")