mdm-dashboard / app.py
nsomabalint's picture
Upload 3 files
c3948dd verified
raw
history blame contribute delete
368 Bytes
import os
from diagnostic_dashboard import demo
# Password protection
# Set your password as environment variable in HF Spaces settings
PASSWORD = os.environ.get("DASHBOARD_PASSWORD", "changeme")
if __name__ == "__main__":
# Auth function that only checks password (username can be anything)
demo.launch(auth=lambda username, password: password == PASSWORD)