|
|
|
|
|
import streamlit as st |
|
|
from assistant import ask_assistant |
|
|
|
|
|
instruction_text = "Hello! I am your AWS Certifications learning path recommender. Please insert only your current role and a description of your role." |
|
|
|
|
|
|
|
|
st.title("AWS Certifications Learning Path Recommender") |
|
|
|
|
|
role = st.text_input(label="Insert your current role: ") |
|
|
|
|
|
role_description = st.text_area(label="Briefly describe your job:", height=100) |
|
|
|
|
|
submitted = st.button("Submit") |
|
|
if submitted: |
|
|
|
|
|
input_text = f"{role} {role_description}" |
|
|
|
|
|
answer = ask_assistant(input_text) |
|
|
|
|
|
st.write(answer) |
|
|
else: |
|
|
st.write(instruction_text) |
|
|
|