Spaces:
Sleeping
Sleeping
utkuarslan5
commited on
Commit
·
3cbefc1
1
Parent(s):
b763f5e
password
Browse files- app.py +9 -3
- template.txt +27 -0
app.py
CHANGED
@@ -196,8 +196,11 @@ stop = False
|
|
196 |
st.title("PersonaChat")
|
197 |
|
198 |
with st.container():
|
199 |
-
|
200 |
user_role_name = st.text_input("User-AI", value="Tourist that has never been to Singapore")
|
|
|
|
|
|
|
201 |
task = st.text_input("Task", value="Discuss the best tourist attractions to see in Singapore")
|
202 |
word_limit = st.slider("Word limit", min_value=0, max_value=50, value=15)
|
203 |
chat_turn_limit = st.slider("Max. Messages", min_value=0, max_value=30, value=10)
|
@@ -217,6 +220,9 @@ if gen_button:
|
|
217 |
with chat_container.container():
|
218 |
task = st.text_input("Task", value=specified_task)
|
219 |
|
|
|
|
|
|
|
220 |
if stop_button:
|
221 |
stop = True
|
222 |
st.stop()
|
@@ -224,8 +230,8 @@ if stop_button:
|
|
224 |
if init_button:
|
225 |
# Initialize agents
|
226 |
assistant_sys_msg, user_sys_msg = get_sys_msgs(assistant_role_name, user_role_name, task)
|
227 |
-
assistant_agent = CAMELAgent(assistant_sys_msg, ChatOpenAI(temperature=
|
228 |
-
user_agent = CAMELAgent(user_sys_msg, ChatOpenAI(temperature=
|
229 |
|
230 |
# Reset agents
|
231 |
assistant_agent.reset()
|
|
|
196 |
st.title("PersonaChat")
|
197 |
|
198 |
with st.container():
|
199 |
+
password = st.text_input("Password", value="")
|
200 |
user_role_name = st.text_input("User-AI", value="Tourist that has never been to Singapore")
|
201 |
+
t2 = st.slider("User Temperature", min_value=0, max_value=1, value=.1)
|
202 |
+
assistant_role_name = st.text_input("Assistant-AI", value="Singapore Tourism Board")
|
203 |
+
t1 = st.slider("Assistant Temperature", min_value=0, max_value=1, value=.1)
|
204 |
task = st.text_input("Task", value="Discuss the best tourist attractions to see in Singapore")
|
205 |
word_limit = st.slider("Word limit", min_value=0, max_value=50, value=15)
|
206 |
chat_turn_limit = st.slider("Max. Messages", min_value=0, max_value=30, value=10)
|
|
|
220 |
with chat_container.container():
|
221 |
task = st.text_input("Task", value=specified_task)
|
222 |
|
223 |
+
if password != "password":
|
224 |
+
st.stop()
|
225 |
+
|
226 |
if stop_button:
|
227 |
stop = True
|
228 |
st.stop()
|
|
|
230 |
if init_button:
|
231 |
# Initialize agents
|
232 |
assistant_sys_msg, user_sys_msg = get_sys_msgs(assistant_role_name, user_role_name, task)
|
233 |
+
assistant_agent = CAMELAgent(assistant_sys_msg, ChatOpenAI(temperature=t1))
|
234 |
+
user_agent = CAMELAgent(user_sys_msg, ChatOpenAI(temperature=t2))
|
235 |
|
236 |
# Reset agents
|
237 |
assistant_agent.reset()
|
template.txt
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
You:
|
2 |
+
Where you live:
|
3 |
+
How old you are:
|
4 |
+
Education:
|
5 |
+
Work experience/Positions:
|
6 |
+
Five things you like, personally:
|
7 |
+
Five things you don't like, personally:
|
8 |
+
Five things you like, professionally:
|
9 |
+
Five things you don't like, professionally:
|
10 |
+
What challenges do you have:
|
11 |
+
What are your hobbies:
|
12 |
+
|
13 |
+
Your role:
|
14 |
+
How are you measured at work:
|
15 |
+
What is a typical work day for you:
|
16 |
+
What skills are useful in your job:
|
17 |
+
What tools do you use in your work today:
|
18 |
+
Who do you report to, and who reports to you:
|
19 |
+
|
20 |
+
Your company
|
21 |
+
What industry does your company operate in:
|
22 |
+
How big is your company:
|
23 |
+
|
24 |
+
Goals and challenges
|
25 |
+
What are you responsible for:
|
26 |
+
What does success look like for you at work:
|
27 |
+
What are your biggest challenges:
|