Spaces:
Running
Running
File size: 1,162 Bytes
d17e7ef 6b509f7 d17e7ef 6b509f7 d17e7ef 6b509f7 d17e7ef 6b509f7 d17e7ef 6b509f7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
#
# 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") |