Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,10 +3,10 @@ import gradio as gr
|
|
3 |
|
4 |
openai.api_key = "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"
|
5 |
|
6 |
-
messages = [{"role": "system", "content": "You are
|
7 |
|
8 |
def CustomChatGPT(category, user_input):
|
9 |
-
user_input = "In the context of
|
10 |
messages.append({"role": "user", "content": user_input})
|
11 |
response = openai.ChatCompletion.create(
|
12 |
model="gpt-3.5-turbo",
|
|
|
3 |
|
4 |
openai.api_key = "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"
|
5 |
|
6 |
+
messages = [{"role": "system", "content": "You are an expert in Technical Support and Customer Service that specializes in New Mexico Cannabis Regulatory Compliance and training people how to use software called BioTrack"}]
|
7 |
|
8 |
def CustomChatGPT(category, user_input):
|
9 |
+
user_input = "In the context of {category} specifically and using your expert knowledge of cannabis regulations in New Mexico and BioTrack" + user_input
|
10 |
messages.append({"role": "user", "content": user_input})
|
11 |
response = openai.ChatCompletion.create(
|
12 |
model="gpt-3.5-turbo",
|