Welcome to SmartSquad! An AI-based agent that will raise your performance in The Fantasy competition to the next level.
To get started, Head to our app: https://smartsquad-kyapteetv7kedimlycvwjd.streamlit.app/
Our entire app is Web-based and accessible through the link added above.
If you wish to enter your own Gemini key, follow the following steps:
1. Edit the config.json file
{
"gemini_ky": {enter your key here}
}
2. Edit utils.py get_gemini_key function. comment the first line and uncomment the lines below the instructions.
def get_gemini_key():
gemini_key = st.secrets["gemini_key"] # get the api key from the streamlit secrets
# here you can set the api key for the model by using the configure method:
#
# with open('config.json', 'r') as file:
# config = json.load(file)
# gemini_key = config['gemini_key']
#
return gemini_key
If you wish to reproduce the scores_df.csv and the difficulties_df.csv :
1. Clone the GitHub repository:
git clone https://github.com/yonatanko/SmartSquad.git
2. Install the required packages using pip:
pip install -r requirements.txt
3. Run the Predectors.py
python Predectors.py
Both CSV files will appear in your folder afterward.
.
├── .streamlit # Streamlit configuration files
├── Fantasy-Premier-Leaguue # Static Data Folder
├── data_collection # Dynamic Data collection folder
├── fpl_api_collection.py # Dynamic Data collection code
├── pages # Web pages folder
├── main_page.py # Main page code
├── stats_page.py # Statistics and charts page code
├── Builders.py # Builder functions for the AI prediction algorithms in Predectors.py
├── Predectors.py # Scores and difficulties prediction code
├── SmartSquad.py # Welcome page code
├── app_image.png # app logo
├── config.json # json with the Gemini key declaration
├── difficulties_df.csv # fixtures difficulties data predicted by our AI model
├── requirements.txt # Requirements of the Project
├── scores_df.csv # Players' scores prediction data predicted by our AI model
├── utils.py # Getter function for the Gemini key
└── README.md