Simon Strandgaard
commited on
Commit
·
cdf59a1
1
Parent(s):
b14ca77
Moved file
Browse files
src/{utils → huggingface_spaces}/is_huggingface_spaces.py
RENAMED
@@ -1,8 +1,8 @@
|
|
1 |
"""
|
2 |
-
PROMPT> IS_HUGGINGFACE_SPACES=true python -m src.
|
3 |
True
|
4 |
|
5 |
-
PROMPT> python -m src.
|
6 |
False
|
7 |
"""
|
8 |
import os
|
|
|
1 |
"""
|
2 |
+
PROMPT> IS_HUGGINGFACE_SPACES=true python -m src.huggingface_spaces.is_huggingface_spaces
|
3 |
True
|
4 |
|
5 |
+
PROMPT> python -m src.huggingface_spaces.is_huggingface_spaces
|
6 |
False
|
7 |
"""
|
8 |
import os
|
src/plan/app_text2plan.py
CHANGED
@@ -24,7 +24,7 @@ from src.plan.speedvsdetail import SpeedVsDetailEnum
|
|
24 |
from src.prompt.prompt_catalog import PromptCatalog
|
25 |
from src.purge.purge_old_runs import start_purge_scheduler
|
26 |
from src.utils.get_env_as_string import get_env_as_string
|
27 |
-
from src.
|
28 |
from src.utils.time_since_last_modification import time_since_last_modification
|
29 |
|
30 |
# Slightly different behavior when running inside Hugging Face Spaces, where it's not possible to open a file explorer.
|
|
|
24 |
from src.prompt.prompt_catalog import PromptCatalog
|
25 |
from src.purge.purge_old_runs import start_purge_scheduler
|
26 |
from src.utils.get_env_as_string import get_env_as_string
|
27 |
+
from src.huggingface_spaces.is_huggingface_spaces import is_huggingface_spaces
|
28 |
from src.utils.time_since_last_modification import time_since_last_modification
|
29 |
|
30 |
# Slightly different behavior when running inside Hugging Face Spaces, where it's not possible to open a file explorer.
|