{ "id": "deployment", "concept": "Deployment & Spaces", "fiction": "The knight's journey concludes as they build a grand pavilion in the Hub, showcasing their forged artifacts to the entire Realm.", "questions": [ { "id": "dep_q1", "shown": { "question": "What is the name of the Hugging Face service that allows you to easily host and share interactive machine learning portfolios and web apps?", "concept_brief": "What are the grand pavilions called where knights display their living artifacts for the public to marvel at?" }, "check": { "strategy": "keyword", "spec": { "correct_any": [ "spaces", "hugging face spaces", "hf spaces" ] } }, "reveal": "Hugging Face Spaces." }, { "id": "dep_q2", "shown": { "question": "What is the most popular Python library used within Spaces to instantly build web interfaces for machine learning models?", "concept_brief": "What is the specific architectural magic used to quickly erect the walls and windows of the pavilion?" }, "check": { "strategy": "keyword", "spec": { "correct_any": [ "gradio" ] } }, "reveal": "Gradio." }, { "id": "dep_q3", "shown": { "question": "What is the name of the default Python file that a Hugging Face Space looks for to start running your Gradio application?", "concept_brief": "What is the name of the master scroll that the pavilion requires to open its doors to the public?" }, "check": { "strategy": "keyword", "spec": { "correct_any": [ "app.py" ] } }, "reveal": "`app.py`." }, { "id": "dep_q4", "shown": { "question": "When building a Space, you must declare all external Python libraries your app needs to run. In what specific file are these listed?", "concept_brief": "The pavilion needs supplies from other guilds to stand. What is the manifest that lists these required supplies?" }, "check": { "strategy": "keyword", "spec": { "correct_any": [ "requirements.txt", "requirements" ] } }, "reveal": "`requirements.txt`." }, { "id": "dep_q5", "shown": { "question": "If Gradio is not flexible enough, Spaces also supports a technology that lets you run any custom environment using a container. What is this called?", "concept_brief": "If the knight wishes to bring their own forge entirely encased in a magical box, what is the name of this container magic?" }, "check": { "strategy": "keyword", "spec": { "correct_any": [ "docker", "docker container", "dockerfile" ] } }, "reveal": "Docker." }, { "id": "dep_q6", "shown": { "question": "What high-level Gradio class is used to wrap a machine learning function and automatically generate a UI with inputs and outputs?", "concept_brief": "What is the specific Gradio enchantment that instantly binds a spirit to a window where mortals can speak to it?" }, "check": { "strategy": "keyword", "spec": { "correct_any": [ "interface", "gr.interface", "Interface()" ] } }, "reveal": "The `Interface` class (`gr.Interface`)." }, { "id": "dep_q7", "shown": { "question": "If your Space requires an API key (like an OpenAI key) to function, where in the Space settings should you securely store it?", "concept_brief": "Where does the knight safely hide the secret passwords needed to unlock allied powers, away from prying eyes?" }, "check": { "strategy": "keyword", "spec": { "correct_any": [ "secrets", "variables and secrets", "environment variables" ] } }, "reveal": "In the Secrets (or Environment Variables) tab." }, { "id": "dep_q8", "shown": { "question": "By default, free Spaces run on standard CPU hardware. What feature allows you to upgrade your Space to run on powerful GPUs for heavy models?", "concept_brief": "If the pavilion needs more raw power to sustain the artifacts, what must the knight upgrade?" }, "check": { "strategy": "keyword", "spec": { "correct_any": [ "hardware", "hardware upgrade", "accelerator", "space hardware" ] } }, "reveal": "Hardware upgrades (or Space Hardware settings)." }, { "id": "dep_q9", "shown": { "question": "If a company wants to deploy a model as a scalable, secure API rather than a visual web app, what enterprise Hugging Face service is used?", "concept_brief": "If the king demands the artifact be bound as a silent, endless fountain of power for the castle, what service is used instead of a pavilion?" }, "check": { "strategy": "keyword", "spec": { "correct_any": [ "inference endpoints", "endpoints" ] } }, "reveal": "Inference Endpoints." }, { "id": "dep_q10", "shown": { "question": "Once any model, dataset, or code is ready locally, what specific Hugging Face method is called in Python to upload it directly to your repository?", "concept_brief": "By what ultimate command does the knight cast their finished creation into the skies of the Hub to be preserved forever?" }, "check": { "strategy": "keyword", "spec": { "correct_any": [ "push_to_hub", "push to hub", "push_to_hub()" ] } }, "reveal": "The `push_to_hub` method." } ] }