doodle-decoder / app.py
cetusian's picture
Deploy doodle-decoder
6b6430f verified
Raw History Blame Contribute Delete
861 Bytes
from pathlib import Path
import live
HERE = Path(__file__).parent
WORDS = ["cat", "dog", "fish", "bird", "house", "tree", "flower", "sun", "moon", "star", "car", "bicycle",
"boat", "airplane", "train", "rocket", "cup", "chair", "table", "lamp", "clock", "key", "umbrella",
"hat", "shoe", "glasses", "guitar", "pizza", "apple", "banana", "ice cream", "cake", "heart",
"smiley face", "snake", "spider", "butterfly", "mountain", "cloud", "lightning", "snowman",
"ghost", "crown", "sword", "light bulb", "phone", "envelope", "scissors", "pencil", "eye"]
def questions(context):
return ("A sketch drawn by a person in a guessing game.", {"guess": {
"type": "choice", "instructions": "What is this sketch meant to be?",
"criteria": {w: w for w in WORDS}}})
app = live.make_app(questions, HERE / "static")