Welcome to this lightweight, interactive portfolio template that showcases your GenAI skills! Users can ask questions about your resume using Google Gemini. Let's get started! 💻✨
-
Go to the repository on GitHub:
https://github.com/jannekemorin/genai-portfolio
. -
Click the Fork button in the top-right corner of the page, leaving all settings as default, to create a copy of the repository under your GitHub account.
-
Open your terminal and navigate to the folder where you'd like to download your forked repository.
-
Run the following command to clone your forked repository (replace
<your-username>
with your GitHub username):git clone https://github.com/<your-username>/genai-portfolio
After forking and cloning the repository, you need to install the required dependencies.
-
Navigate into the local repository:
cd genai-portfolio
-
Install the dependencies listed in
requirements.txt
:pip install -r requirements.txt
_💡 Note: Ensure that you have Python and
pip
installed on your system. You can check by runningpython --version
andpip --version
.
Ensure you have the forked repository open in your favorite code editor.
-
Inside the .streamlit folder, create a file named
secrets.toml
. -
Add the following line to the file, replacing
YOUR_GEMINI_API_KEY
with your actual API key:API_KEY="YOUR_GEMINI_API_KEY"
As you customize your portfolio, you can run it locally to preview changes.
-
In your terminal, navigate to the repository directory.
-
Run this command:
streamlit run Home.py
-
If successful, you'll see a message like this:
You can now view your Streamlit app in your browser. Local URL: http://localhost:8501 Network URL: http://10.0.0.47:8501
-
Open the local URL in your browser to view your portfolio! 🌐🎉
💡 Troubleshooting: If you encounter an error while running the app, ensure all dependencies are installed and that your API key is correctly set up.
Make it yours by updating these files:
- assets/Headshot.png: Replace with a picture of yourself.
- assets/Resume.pdf: Upload a PDF version of your resume.
- assets/Resume.txt: Replace with plain text from your resume.
-
config.py:
- Update the
FIRST_NAME
variable with your first name to personalize predefined questions. - Update the
PRONOUNS
variable. This will be included in the prompt so that the LLM refers to you using your pronouns. - Optionally, customize the predefined questions by editing the
PREDEFINED_QUESTIONS
list. You can add, remove, or modify questions to better reflect your experience and expertise. - Update the
LINKEDIN_LINK
,EMAIL_LINK
, andGITHUB_LINK
variables to reflect your accounts. - Adjust the
HOMEPAGE_TITLE
,HOMEPAGE_SUBTITLE
, andHOMEPAGE_BIO
to reflect your specialties.
- Update the
-
.streamlit/config.toml:
- Optionally, customize the accent color for the application.
The Home.py and pages/Q&A.py files will pull from this file to customize the homepage and Q&A page, respectively.
Streamlit makes it easy to share your app with others! Follow these steps:
-
Go to Streamlit and sign up for an account if you don’t have one already.
-
Link your GitHub account.
-
Head over to Streamlit Share and click Create app.
-
Fill out the following details:
- Repository:
YOUR-USERNAME/genai-portfolio
- Branch:
main
- Main file path:
Home.py
- Repository:
-
Under Advanced settings, add this environment variable:
API_KEY="YOUR_GEMINI_API_KEY"
-
Click Deploy.
💡 Tip: Make sure all changes are pushed to GitHub before deploying.
Your portfolio is now live and ready to be shared with the world! 🌍✨ Show off those GenAI skills and let users explore your resume interactively!
Feel free to continue customizing and improving this portfolio as you grow in your GenAI journey!