mesop-jeopardy / README.md
Richard To
Update README.md
1f69223 unverified
|
raw
history blame
1.49 kB

Mesop Jeopardy

Simple jeopardy game built using Mesop. User answers are checked using the Gemini API.

In order to run the app, you will need a Google API Key for Gemini Pro. You can create one using the instructions at https://ai.google.dev/gemini-api/docs/api-key.

git clone [email protected]:richard-to/mesop-jeopardy.git
cd mesop-jeopardy
pip install -r requirements.txt
GOOGLE_API_KEY=<your-api-key> mesop app.py

Notes on the Jeopardy questions dataset

One thing to note is I haven't included the jeopardy.json file. I'm using an old dataset of 200K questions that's about 10 years old now. You can find it with a quick Google search.

The file needs to be added to the data folder and named jeopardy.json. The format is like this. So you can also ask Gemini/ChatGPT/etc to generate some questions in this format as well.

{
  "category": "HISTORY",
  "air_date": "2004-12-31",
  "question": "'For the last 8 years of his life, Galileo was...",
  "value": "$200",
  "answer": "Copernicus",
  "round": "Jeopardy!",
  "show_number": "4680"
}

Screenshots

Here are some screenshots of the UI.

Jeopardy board

Jeopardy

Jeopardy answer

Jeopardy Answer Modal