Spaces:
Sleeping
Sleeping
Anthony G
commited on
Commit
•
aed2d12
1
Parent(s):
a8d8fa6
nit
Browse files
app.py
CHANGED
@@ -165,7 +165,7 @@ def predict(message, history):
|
|
165 |
history_openai_format.append({"role": "user", "content": message})
|
166 |
|
167 |
response = openai.chat.completions.create(
|
168 |
-
model="ft:gpt-3.5-turbo-0613:personal::8kBTG8eh", messages=history_openai_format, temperature=
|
169 |
)
|
170 |
|
171 |
partial_message = ""
|
@@ -175,4 +175,4 @@ def predict(message, history):
|
|
175 |
yield partial_message
|
176 |
|
177 |
|
178 |
-
gr.ChatInterface(fn=predict, title="Mental Health Chatbot
|
|
|
165 |
history_openai_format.append({"role": "user", "content": message})
|
166 |
|
167 |
response = openai.chat.completions.create(
|
168 |
+
model="ft:gpt-3.5-turbo-0613:personal::8kBTG8eh", messages=history_openai_format, temperature=0.35, stream=True
|
169 |
)
|
170 |
|
171 |
partial_message = ""
|
|
|
175 |
yield partial_message
|
176 |
|
177 |
|
178 |
+
gr.ChatInterface(fn=predict, title="Mental Health Chatbot").launch(share=True)
|