import gradio as gr from datetime import datetime from datasets import Dataset, load_dataset from huggingface_hub import login, HfApi import pandas as pd import os import time import tempfile import logging logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) HF_TOKEN = os.environ.get("HF_TOKEN") if HF_TOKEN: login(token=HF_TOKEN) logger.info("Authenticated with Hugging Face") else: logger.warning("HF_TOKEN not found - running without authentication") DATASET_NAME = "build-small-hackathon/build-small-hackathon-registrations" # Auto-backups land under the user namespace (not the org) so the org's dataset # list isn't polluted with thousands of timestamped backup repos. The HF_TOKEN # secret on the Space must have write access to BOTH the org dataset (above) # and this user namespace. BACKUP_DATASET_PREFIX = "ysharma/build-small-hackathon-registrations-auto-backup" DISCORD_INVITE = "https://discord.gg/YHECTft87Z" DISCORD_CHANNEL = "build-small-hackathon-official" HEADER_HTML = """
""" INFO_ROW_HTML = """{DISCORD_CHANNEL} Β· office hours, AMAs, and support.