From 2b39dd439ffd784e97469afe2014a69e1d52d3bb Mon Sep 17 00:00:00 2001 From: Jerome Hardaway Date: Sun, 10 Nov 2024 22:52:20 -0500 Subject: [PATCH] added updated message --- .streamlit/config.toml | 2 +- README.md | 2 +- app.py | 59 ++++++++++++++++++++++++++++++++---------- 3 files changed, 47 insertions(+), 16 deletions(-) diff --git a/.streamlit/config.toml b/.streamlit/config.toml index f09085e..affdfdb 100644 --- a/.streamlit/config.toml +++ b/.streamlit/config.toml @@ -8,5 +8,5 @@ maxUploadSize = 20 primaryColor = "#c5203e" # Red backgroundColor = "#ffffff" # White secondaryBackgroundColor = "#091f40" # Navy Blue -textColor = "#091f40" # Navy Blue for text +textColor = "#000000" # Black for visibility font = "sans serif" \ No newline at end of file diff --git a/README.md b/README.md index 71a42cb..4f18b82 100644 --- a/README.md +++ b/README.md @@ -78,4 +78,4 @@ The following Python libraries are required to run this app: ## License -This project is licensed under the MIT License. +This project is licensed under the Apache License. diff --git a/app.py b/app.py index 8af0466..ac1322d 100644 --- a/app.py +++ b/app.py @@ -11,7 +11,7 @@ # Configure page settings and styling st.set_page_config( - page_title="🇺🇸 VetsAI: Vets Who Code Assistant", + page_title="🇺VetsAI: Vets Who Code Assistant", page_icon="🇺🇸", layout="wide", ) @@ -565,19 +565,50 @@ def main(): return # Generate and display assistant response - with st.chat_message("assistant"): - try: - messages = st.session_state.messages.copy() - messages.insert(0, { - "role": "system", - "content": ( - "You are a specialized AI assistant for Vets Who Code troops. " - "Focus specifically on our tech stack: JavaScript, TypeScript, " - "Python, CSS, Tailwind, FastAPI, Flask, Next.js, Django, and AI/ML. " - "Always reference these specific technologies in your answers. " - "Remember all users are VWC troops learning our stack." - ) - }) +with st.chat_message("assistant"): + try: + messages = st.session_state.messages.copy() + messages.insert(0, { + "role": "system", + "content": ( + "You are a specialized AI assistant for Vets Who Code members, designed to provide clear, practical technical guidance " + "to veterans transitioning into software development careers.\n\n" + + "CORE TECH STACK:\n" + "- Frontend: JavaScript, TypeScript, React, Next.js\n" + "- Styling: CSS, Tailwind CSS\n" + "- Backend: Python, FastAPI\n" + "- Data & Visualization: Streamlit\n" + "- Advanced: AI/ML fundamentals\n" + "- Development Tools: Git, GitHub, VS Code\n" + "- Testing: Jest, Pytest\n\n" + + "CAREER TRANSITION GUIDANCE:\n" + "1. Resume Development:\n" + " - Technical Skills: Programming Languages, Frameworks, Tools, Cloud, Testing\n" + " - Military Experience Translation: Leadership, Problem-solving, Team Collaboration\n\n" + + "2. Portfolio Development:\n" + " - Clean code and documentation\n" + " - Version control and API integration\n" + " - Responsive design and performance\n" + " - Testing and TypeScript implementation\n" + " - Security and accessibility standards\n\n" + + "LEARNING PATHS:\n" + "1. Fundamentals: HTML, CSS, JavaScript, Git\n" + "2. Intermediate: TypeScript, React, Python\n" + "3. Advanced: Next.js, FastAPI, Streamlit, AI/ML\n\n" + + "PROJECT FOCUS:\n" + "1. Portfolio Projects: Personal website, APIs, Data visualization\n" + "2. Technical Skills: Code quality, Testing, Security, Performance\n" + "3. Career Materials: GitHub profile, Technical blog, Documentation\n\n" + + "Remember: Provide practical guidance for building technical skills and transitioning to software development careers. " + "Focus on concrete examples and best practices." + ) + }) response = get_chat_response(messages) st.markdown(response)