DEV Community

PranavMunigala
PranavMunigala

Posted on

"Whos Better at Basketball?" Basic AI Program

This is the next project in my beginner series, where I explore how to incorporate AI into Python projects by combining it with something I’m passionate about: basketball. My latest project is a player comparison tool powered by AI.

In this app, users can enter the names of two basketball players. After clicking a button, the app generates a detailed, side-by-side breakdown of their strengths, weaknesses, and a final comparison explaining who the better player is overall.

Tools I Used:

  • Streamlit to build the interactive user interface
  • LangChain to structure the prompt and manage the AI response
  • OpenAI’s GPT-3.5 Turbo to perform the in-depth player analysis
  • Python-dotenv to securely load my API key

Each project in this series helps me build my skills in both coding and AI while keeping it fun by focusing on basketball. I’m looking forward to continuing this series with new features and ideas. As always, feedback is appreciated.

Youtube Video to show how this works: https://www.youtube.com/watch?v=orScdMnyjhg

Top comments (0)

Some comments may only be visible to logged-in visitors. Sign in to view all comments.