File size: 772 Bytes
132ac81
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

import streamlit as st
from assistant import ask_assistant

# Create a Streamlit app
st.title("AWS Certifications Learning Path Recommender")

# Ask the user for their role
role = st.text_input(label="Insert your current role: ")

# Ask the user for their job description
role_description = st.text_area(label="Briefly describe your job:", height=100)

# Create an instruction text
instruction_text = "Hello! I am your AWS Certifications learning path recommender. Please insert only you current role and a description of your role."

# Append the two answers into a single string
input_text = f"{role} {role_description}"

# Call the ask_assistant function with the input text
answer = ask_assistant(input_text)

# Display the answer from the assistant
st.write(answer)