vSiddi
commited on
Commit
·
92db39d
1
Parent(s):
9d675f2
Disbaled
Browse files- modules/app_constants.py +1 -1
- modules/nav_about.py +1 -1
modules/app_constants.py
CHANGED
|
@@ -52,5 +52,5 @@ MAX_FILE_SIZE = 10 #not implement
|
|
| 52 |
LOCAL_PERSISTANT_DB = WORKSPACE_DIRECTORY + "db/"
|
| 53 |
CONTENT_TYPE = ["Policies", "Playbooks", "Standards", "Reference Docs"]
|
| 54 |
SYSTEM_CONTENT_DATA = "app-content.json"
|
| 55 |
-
SYSTEM_DEPLOYMENT_MODE =
|
| 56 |
ZYSEC_DEMO = "http://zysec.is-a-geek.com:8000/v1" #not enabled yet
|
|
|
|
| 52 |
LOCAL_PERSISTANT_DB = WORKSPACE_DIRECTORY + "db/"
|
| 53 |
CONTENT_TYPE = ["Policies", "Playbooks", "Standards", "Reference Docs"]
|
| 54 |
SYSTEM_CONTENT_DATA = "app-content.json"
|
| 55 |
+
SYSTEM_DEPLOYMENT_MODE = 0
|
| 56 |
ZYSEC_DEMO = "http://zysec.is-a-geek.com:8000/v1" #not enabled yet
|
modules/nav_about.py
CHANGED
|
@@ -22,7 +22,7 @@ def app():
|
|
| 22 |
mode_to_index = {"private": 0, "demo": 1, "openai": 2}
|
| 23 |
default_index = mode_to_index.get(app_constants.SYSTEM_DEPLOYMENT_MODE, 0) # Default to "Local" if not found
|
| 24 |
# Radio buttons for selecting the server mode
|
| 25 |
-
server_mode = st.radio("Select Server Mode", ["
|
| 26 |
|
| 27 |
# Initialize variables for settings
|
| 28 |
local_model_uri, remote_model_uri, openai_api_key = None, None, None
|
|
|
|
| 22 |
mode_to_index = {"private": 0, "demo": 1, "openai": 2}
|
| 23 |
default_index = mode_to_index.get(app_constants.SYSTEM_DEPLOYMENT_MODE, 0) # Default to "Local" if not found
|
| 24 |
# Radio buttons for selecting the server mode
|
| 25 |
+
server_mode = st.radio("Select Server Mode", ["ZySec Demo", "Private", "OpenAI"],index=default_index, disabled=True)
|
| 26 |
|
| 27 |
# Initialize variables for settings
|
| 28 |
local_model_uri, remote_model_uri, openai_api_key = None, None, None
|