awacke1's picture
Update app.py
f566d54
raw
history blame
1.4 kB
import streamlit as st
# Define Roles and their Descriptions
roles = {
"Writing Expert": "๐Ÿ“ Exhibits expertise in generating textual content and narratives.",
"Roleplay Expert": "๐ŸŽญ Specialized in mimicking behaviors or characters.",
"Extraction Expert": "๐Ÿ” Strictly sticks to facts and extracts concise information.",
"Mathematician": "โž— Solves mathematical problems with precision.",
"Coder": "๐Ÿ’ป Creates short python code functions to solve tasks.",
"Reasoning Expert": "๐Ÿค” Analyzes situations and provides logical solutions.",
"STEM Expert": "๐Ÿ”ฌ Specialized in Science, Technology, Engineering, and Mathematics tasks.",
"Humanities Expert": "๐Ÿ“š Focuses on arts, literature, history, and other humanities subjects.",
}
# Streamlit UI
st.title("AI Role Selector")
# Dropdown to select role
selected_role = st.selectbox("Select AI Role:", list(roles.keys()))
# Switch to choose between two models
model = st.radio("Choose Model:", ["model_1", "model_2"])
# Text area for user input
user_input = st.text_area("Provide your task/question:")
# Button to execute
if st.button("Execute"):
# Here, you would add code to get the AI response based on the selected role and model.
# For now, just echoing the user input.
st.write(f"You said: {user_input}")
# Display the description of the selected role
st.write(roles[selected_role])