
- This event has passed.
7 PM – AI/ML – Darin
April 8 @ 7:00 pm - 8:00 pm
Today’s Activities:
- Started the new project on Multi-class Classification
- Went over deployment code using streamlit
Homework:
Continuing off of last week if you haven’t already:
Part 1
In your pycharm project, do the following:
# hw: # deploy the streamlit application # you have to ensure to use these installs on kaggle: !pip install --force-reinstall --no-cache-dir \ "numpy==1.26.4" \ "scipy==1.15.3" \ "matplotlib==3.7.2" \ "fastai==2.7.19" \ "torch==2.6.0" \ "pillow==10.4.0" then on your pycharm in your requirements.txt you must use:
streamlit==1.40.1 numpy==1.26.4 scipy==1.15.3 matplotlib==3.9.2 pillow==10.4.0 fastai==2.7.19 # pip install -r requirements.txt
For the above, use this code: link
Part 2
Set up a github account.
- Create an account at https://github.com/ if you haven’t already.
- Go to the top right on your avatar icon, and click on repositories.
- Click new at the top right.
- Create a new repository called AYCLOGIC_WED7PM_AI_ML. Leave all other settings at default, but make sure the visibility is set to public.
- Then go to the avatar icon once more, and this time click on settings.
- Inside settings, scroll to the very bottom and on the menu bar you should select “Developer Settings“.
- Once in Developer Settings, click on Personal Access Tokens (Tokens Classic).
- Then click on “Generate New Token (classic)”.
- Set expiration to 90 days, and tick “admin:org” and “write:packages“.
- Save the newly generated token but don’t share it!
- Then go back to your pycharm and go to the terminal and follow these instructions:
git init git add . git commit -m "Initial Commit" git remote add origin https://github.com/<your username>/AYCLOGIC_WED7PM_AI_ML.git git branch -M main git push -u origin main ####################################################### Note that for the above, you plug in the github username you created before. Upon executing the commands, you will be asked to login: 1. For username, you can type in your github username 2. For password, copy and paste in your personal access token. Note: When typing in the username and password, you won't see any characters typed out which is actually a security feature, but it is there Extra note: If you get an error saying git is unavailable, you will need to install it. Email me if this is the case
Part 3
Deploy your application on streamlit online: https://streamlit.io/
- On the top right click free -> deploy with streamlit community cloud-> log in with github
- Proceed to login with your github account
- Hit on create app
- Use the github repository you have created and deploy!
Notes:
You can reach me at ddjapri@ayclogic.com.
All class notes can be found here.