Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ openai.api_key = os.getenv("openai_api_key")
|
|
7 |
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"}]
|
8 |
|
9 |
def CustomChatGPT(category, user_input):
|
10 |
-
user_input = "In the context of {category} specifically and using your
|
11 |
messages.append({"role": "user", "content": user_input})
|
12 |
response = openai.ChatCompletion.create(
|
13 |
model="gpt-3.5-turbo",
|
|
|
7 |
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"}]
|
8 |
|
9 |
def CustomChatGPT(category, user_input):
|
10 |
+
user_input = "In the context of {category} specifically and using your expertise and knowledge of cannabis regulations in New Mexico and BioTrack" + user_input
|
11 |
messages.append({"role": "user", "content": user_input})
|
12 |
response = openai.ChatCompletion.create(
|
13 |
model="gpt-3.5-turbo",
|