Spaces:
Paused
Paused
| # | |
| # SPDX-FileCopyrightText: Hadad <[email protected]> | |
| # SPDX-License-Identifier: Apache-2.0 | |
| # | |
| import os # Import os module to interact with environment variables | |
| import json # Import json module to parse JSON-formatted strings | |
| # Load the 'auth' configuration from an environment variable named "auth" | |
| # This variable is expected to contain a JSON-formatted string representing authentication details | |
| auth = json.loads(os.getenv("auth")) | |
| # Load the 'restrictions' configuration from an environment variable named "restrictions" | |
| # This variable is expected to contain a plain string defining usage restrictions or guidelines | |
| restrictions = os.getenv("restrictions") | |
| # Load the 'model' configuration from an environment variable named "model" | |
| # This variable is expected to contain a JSON-formatted string mapping model labels to model names or configurations | |
| model = json.loads(os.getenv("model")) | |
| # HTML meta tags for SEO and other purposes, loaded as a raw string from environment variables | |
| # These tags are intended to be inserted into the <head> section of generated HTML pages | |
| # Used in https://hadadrjt-ai.hf.space | |
| meta_tags = os.getenv("META_TAGS") |