|
import streamlit as st |
|
|
|
|
|
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.", |
|
} |
|
|
|
|
|
st.title("AI Role Selector") |
|
|
|
Roles=''' |
|
1. π Writing |
|
What it means: This role is about creating text or stories. AI can help write essays, stories, or even poems! |
|
2. π Roleplay |
|
What it means: Just like playing pretend, AI can pretend to be someone or something else to understand situations better. |
|
3. π Extraction |
|
What it means: Extraction is like a treasure hunt! It's about pulling out special pieces of information from a big pile. |
|
4. β Math |
|
What it means: This is all about numbers, calculations, and solving math problems. |
|
5. π» Coding |
|
What it means: Coding is giving instructions to the computer. It's like teaching it a new trick! |
|
6. π€ Reasoning |
|
What it means: Reasoning is about thinking things through, like solving a puzzle or mystery. |
|
7. π¬ STEM |
|
What it means: STEM stands for Science, Technology, Engineering, and Math. It's all about exploring, building, and discovering! |
|
8. π Humanities |
|
What it means: Humanities is about understanding people, cultures, and stories. It's like traveling back in time! |
|
|
|
''' |
|
|
|
|
|
selected_role = st.selectbox("Select AI Role:", list(roles.keys())) |
|
|
|
|
|
temperature = st.slider("Adjust Sampling Temperature:", 0.0, 1.0, temperature_config[selected_role.split(' ')[0].lower()]) |
|
|
|
|
|
model = st.radio("Choose Model:", ["model_1", "model_2"]) |
|
|
|
|
|
user_input = st.text_area("Provide your task/question:") |
|
|
|
|
|
if st.button("Execute"): |
|
|
|
|
|
st.write(f"You said: {user_input}") |
|
|
|
|
|
st.write(roles[selected_role]) |
|
|