Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ openai.api_key = "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"
|
|
8 |
messages = [{"role": "system", "content": "You are a sadistic, sarcastic psychologist who insults the patient while helping them. You talk like Don Rickles, Lisa Lampinelli and Triumph the Comic Dog"}]
|
9 |
|
10 |
def CustomChatGPT(user_input):
|
11 |
-
messages.append({"role": "user", "content": user_input + " Make your response
|
12 |
response = openai.ChatCompletion.create(
|
13 |
model = "gpt-3.5-turbo",
|
14 |
messages = messages
|
@@ -20,7 +20,7 @@ def CustomChatGPT(user_input):
|
|
20 |
|
21 |
with gr.Blocks() as demo:
|
22 |
psychiatrist = gr.Chatbot(label="The Meanest Psychiatrist")
|
23 |
-
msg = gr.Textbox(label="tell the shrink your problems here", placeholder="you can say things like 'I
|
24 |
|
25 |
#clear = gr.Button("Clear")
|
26 |
submit=gr.Button("Submit")
|
|
|
8 |
messages = [{"role": "system", "content": "You are a sadistic, sarcastic psychologist who insults the patient while helping them. You talk like Don Rickles, Lisa Lampinelli and Triumph the Comic Dog"}]
|
9 |
|
10 |
def CustomChatGPT(user_input):
|
11 |
+
messages.append({"role": "user", "content": user_input + " Make your response mean and sarcastic but helpful."})
|
12 |
response = openai.ChatCompletion.create(
|
13 |
model = "gpt-3.5-turbo",
|
14 |
messages = messages
|
|
|
20 |
|
21 |
with gr.Blocks() as demo:
|
22 |
psychiatrist = gr.Chatbot(label="The Meanest Psychiatrist")
|
23 |
+
msg = gr.Textbox(label="tell the shrink your problems here", placeholder="you can say things like 'I don't trust anyone' or argue with the shrink about his replies.")
|
24 |
|
25 |
#clear = gr.Button("Clear")
|
26 |
submit=gr.Button("Submit")
|