DEV Community

PranavMunigala
PranavMunigala

Posted on

Fictional Player Profile Creator

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 profile creator with a parsed output.

In this app, users click a button named "Create a new prospect". After clicking the button, the app generates a complete, well-structured player profile, including a generated name, position, physical attributes, a list of strengths and weaknesses, and a creative backstory.

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
  • json parser

Every 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://youtu.be/sfAUTWXf1mY

Top comments (0)