Spaces:
Runtime error
Runtime error
Update app1.py
Browse files
app1.py
CHANGED
@@ -58,14 +58,14 @@ def respond(
|
|
58 |
temperature: float,
|
59 |
top_p: float,
|
60 |
):
|
61 |
-
system_message = "
|
62 |
messages = [{"role": "system", "content": system_message}]
|
63 |
|
64 |
for val in history:
|
65 |
if val[0]:
|
66 |
messages.append({"role": "user", "content": val[0]})
|
67 |
if val[1]:
|
68 |
-
messages.append({"role": "
|
69 |
|
70 |
messages.append({"role": "user", "content": message})
|
71 |
|
@@ -89,7 +89,7 @@ def respond(
|
|
89 |
demo = gr.Blocks()
|
90 |
|
91 |
with demo:
|
92 |
-
gr.Markdown("
|
93 |
gr.Markdown(
|
94 |
"‼️Disclaimer: This chatbot is based on a DBT exercise book that is publicly available. "
|
95 |
"We are not medical practitioners, and the use of this chatbot is at your own responsibility.‼️"
|
@@ -98,16 +98,11 @@ with demo:
|
|
98 |
chatbot = gr.ChatInterface(
|
99 |
respond,
|
100 |
examples=[
|
101 |
-
["
|
102 |
-
|
103 |
-
|
104 |
-
["What are some DBT skills for managing anxiety?"],
|
105 |
-
["Can you explain mindfulness in DBT?"],
|
106 |
-
["I am interested in DBT excercises"],
|
107 |
-
["I feel restless. Please help me."],
|
108 |
-
["I have destructive thoughts coming to my mind repetatively."]
|
109 |
],
|
110 |
-
title='
|
111 |
)
|
112 |
|
113 |
if __name__ == "__main__":
|
|
|
58 |
temperature: float,
|
59 |
top_p: float,
|
60 |
):
|
61 |
+
system_message = "I offer mock interviews, personalized feedback, and valuable insights into common interview questions and industry-specific tips. My goal is to boost your confidence, improve your communication skills, and equip you with the tools needed to impress potential employers."
|
62 |
messages = [{"role": "system", "content": system_message}]
|
63 |
|
64 |
for val in history:
|
65 |
if val[0]:
|
66 |
messages.append({"role": "user", "content": val[0]})
|
67 |
if val[1]:
|
68 |
+
messages.append({"role": "coach", "content": val[1]})
|
69 |
|
70 |
messages.append({"role": "user", "content": message})
|
71 |
|
|
|
89 |
demo = gr.Blocks()
|
90 |
|
91 |
with demo:
|
92 |
+
gr.Markdown("**Job Interview Prep Coach**")
|
93 |
gr.Markdown(
|
94 |
"‼️Disclaimer: This chatbot is based on a DBT exercise book that is publicly available. "
|
95 |
"We are not medical practitioners, and the use of this chatbot is at your own responsibility.‼️"
|
|
|
98 |
chatbot = gr.ChatInterface(
|
99 |
respond,
|
100 |
examples=[
|
101 |
+
["What are the most common mistakes candidates make during interviews, and how can I avoid them?"],
|
102 |
+
["Do you have any tips for handling nerves or anxiety during interviews?"],
|
103 |
+
["What are effective strategies for answering behavioral interview questions?"]
|
|
|
|
|
|
|
|
|
|
|
104 |
],
|
105 |
+
title='Job Interview Prep Coach'
|
106 |
)
|
107 |
|
108 |
if __name__ == "__main__":
|