Spaces:
Sleeping
Sleeping
Anthony G
commited on
Commit
·
f033bea
1
Parent(s):
2237bbe
better model
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def predict(message, history):
|
|
24 |
history_openai_format.append({"role": "user", "content": message})
|
25 |
|
26 |
response = openai.chat.completions.create(
|
27 |
-
model="ft:gpt-3.5-turbo-0613:personal::
|
28 |
)
|
29 |
|
30 |
partial_message = ""
|
@@ -36,7 +36,7 @@ def predict(message, history):
|
|
36 |
|
37 |
gr.ChatInterface(
|
38 |
fn=predict,
|
39 |
-
title="Mental Health Chatbot
|
40 |
description="This is a mental health companion created to assist persons who need an outlet to express their raw feelings without the fear of being judged. Sometimes persons don't have a direct outlet they trust to talk about certain aspects of their lives, so this chatbot will serve as a companion in those times of need. This is a pure companion who remembers your name throughout each session and provides an outlet for you to vent and get actionable advice.",
|
41 |
examples=[
|
42 |
"Hi! My name is John and I haven't been feeling myself lately. A lot has been going and I just don't know how to process it all. I feel like I'm losing my mind.",
|
|
|
24 |
history_openai_format.append({"role": "user", "content": message})
|
25 |
|
26 |
response = openai.chat.completions.create(
|
27 |
+
model="ft:gpt-3.5-turbo-0613:personal::8qTSdtfs", messages=history_openai_format, temperature=0.35, stream=True
|
28 |
)
|
29 |
|
30 |
partial_message = ""
|
|
|
36 |
|
37 |
gr.ChatInterface(
|
38 |
fn=predict,
|
39 |
+
title="Mental Health Chatbot by Jayda Hunte",
|
40 |
description="This is a mental health companion created to assist persons who need an outlet to express their raw feelings without the fear of being judged. Sometimes persons don't have a direct outlet they trust to talk about certain aspects of their lives, so this chatbot will serve as a companion in those times of need. This is a pure companion who remembers your name throughout each session and provides an outlet for you to vent and get actionable advice.",
|
41 |
examples=[
|
42 |
"Hi! My name is John and I haven't been feeling myself lately. A lot has been going and I just don't know how to process it all. I feel like I'm losing my mind.",
|