Spaces:
Sleeping
Sleeping
Tadashi
commited on
fix: update flowsettings
Browse files- Dockerfile +0 -1
- flowsettings.py +3 -1
Dockerfile
CHANGED
@@ -12,4 +12,3 @@ COPY flowsettings.py /app
|
|
12 |
ENV GRADIO_SERVER_NAME=0.0.0.0
|
13 |
ENTRYPOINT ["python", "app.py"]
|
14 |
EXPOSE 7860
|
15 |
-
|
|
|
12 |
ENV GRADIO_SERVER_NAME=0.0.0.0
|
13 |
ENTRYPOINT ["python", "app.py"]
|
14 |
EXPOSE 7860
|
|
flowsettings.py
CHANGED
@@ -24,9 +24,11 @@ if not KH_APP_VERSION:
|
|
24 |
except Exception:
|
25 |
KH_APP_VERSION = "local"
|
26 |
|
|
|
|
|
|
|
27 |
# App can be ran from anywhere and it's not trivial to decide where to store app data.
|
28 |
# So let's use the same directory as the flowsetting.py file.
|
29 |
-
KH_ENABLE_FIRST_SETUP = True
|
30 |
KH_APP_DATA_DIR = this_dir / "ktem_app_data"
|
31 |
KH_APP_DATA_EXISTS = KH_APP_DATA_DIR.exists()
|
32 |
KH_APP_DATA_DIR.mkdir(parents=True, exist_ok=True)
|
|
|
24 |
except Exception:
|
25 |
KH_APP_VERSION = "local"
|
26 |
|
27 |
+
KH_ENABLE_FIRST_SETUP = True
|
28 |
+
KH_DEMO_MODE = config("KH_DEMO_MODE", default=False)
|
29 |
+
|
30 |
# App can be ran from anywhere and it's not trivial to decide where to store app data.
|
31 |
# So let's use the same directory as the flowsetting.py file.
|
|
|
32 |
KH_APP_DATA_DIR = this_dir / "ktem_app_data"
|
33 |
KH_APP_DATA_EXISTS = KH_APP_DATA_DIR.exists()
|
34 |
KH_APP_DATA_DIR.mkdir(parents=True, exist_ok=True)
|