File size: 2,307 Bytes
586f060
 
 
 
55c1776
 
 
 
 
 
 
 
586f060
 
 
55c1776
 
31a38e2
 
55c1776
 
 
 
 
 
 
 
 
 
 
 
586f060
 
 
 
e9d1b4d
 
 
586f060
 
 
 
 
 
 
 
f566d54
586f060
 
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import streamlit as st

# Define Roles and their Descriptions
roles = {
    "1. Coder": "๐Ÿ’ป Creates short python code functions to solve tasks.",
    "2. Humanities Expert": "๐Ÿ“š Focuses on arts, literature, history, and other humanities subjects.",
    "3. Analyst": "๐Ÿค” Analyzes situations and provides logical solutions.",
    "4. Roleplay Expert": "๐ŸŽญ Specialized in mimicking behaviors or characters.",
    "5. Mathematician": "โž— Solves mathematical problems with precision.",
    "6. STEM Expert": "๐Ÿ”ฌ Specialized in Science, Technology, Engineering, and Mathematics tasks.",
    "7. Extraction Expert": "๐Ÿ” Strictly sticks to facts and extracts concise information.",
    "8. Drafter": "๐Ÿ“ Exhibits expertise in generating textual content and narratives.",
}

# Streamlit UI
st.title("AI Role Selector - CHARMSED ๐Ÿค–โœจ")
st.markdown("""
### Harness the power of AI with the CHARMSED framework. 
#### This suite of roles brings together a comprehensive set of AI capabilities, tailored for diverse tasks:

- **C**oder ๐Ÿ’ป: Craft pythonic solutions with precision.
- **H**umanities Expert ๐Ÿ“š: Dive deep into arts, literature, and history.
- **A**nalyst ๐Ÿค”: Derive insights through logical reasoning.
- **R**oleplay Expert ๐ŸŽญ: Mimic behaviors or adopt personas for engaging interactions.
- **M**athematician โž—: Crunch numbers and solve mathematical enigmas.
- **S**TEM Expert ๐Ÿ”ฌ: Navigate through the realms of Science, Technology, Engineering, and Mathematics.
- **E**xtraction Expert ๐Ÿ”: Extract concise information with a laser-focus.
- **D**rafter ๐Ÿ“: Generate textual content and narratives with flair.

Empower your tasks with the perfect AI role and unleash the magic of CHARMSED!
""")

# Dropdown to select role
selected_role = st.selectbox("Select AI Role:", list(roles.keys()))

# Display the description of the selected role
st.write(roles[selected_role])

# 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}")