CannaTech commited on
Commit
6d12f87
·
1 Parent(s): 075e2ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,12 +2,12 @@ import openai
2
  import gradio as gr
3
  import os
4
 
5
- openai.api_key = os.environ["openai_api_key"]
6
 
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 = f"In the context of {category} specifically and using your expert 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",
 
2
  import gradio as gr
3
  import os
4
 
5
+ openai.api_key = os.getenv("openai_api_key")
6
 
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 expert 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",