Ivan Roman commited on
Commit
a1496f2
·
1 Parent(s): d7652fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
3
 
4
  openai.api_key = "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"
5
 
6
- messages = [{"role": "system", "content": "You are a Customer Service expert that specializes in BioTrack and New Mexico Cannabis Regulatory Compliance"}]
7
 
8
  def CustomChatGPT(category, user_input):
9
  user_input = f"In the context of BioTrack and cannabis regulations in New Mexico, and specifically about {category}, " + user_input
@@ -18,7 +18,7 @@ def CustomChatGPT(category, user_input):
18
 
19
  iface = gr.Interface(
20
  fn=CustomChatGPT,
21
- inputs=[gr.inputs.Dropdown(choices=['Biotrack', 'Regulations', 'Best Practices', 'General Question'], label='Category'), gr.inputs.Textbox(lines=5, placeholder='Type here...', label='Your Question')],
22
  outputs=gr.outputs.Textbox(label='AI Response'),
23
  title="CannaAssist AI Assistant",
24
  description="Welcome to the CannaAssist AI Assistant. This tool is designed to provide expert guidance on BioTrack and cannabis regulations in New Mexico. DISCLAIMER: This is a proof of concept and not an official product.",
 
3
 
4
  openai.api_key = "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"
5
 
6
+ messages = [{"role": "system", "content": "You are a Technical Support Customer Service expert that specializes in BioTrack and New Mexico Cannabis Regulatory Compliance"}]
7
 
8
  def CustomChatGPT(category, user_input):
9
  user_input = f"In the context of BioTrack and cannabis regulations in New Mexico, and specifically about {category}, " + user_input
 
18
 
19
  iface = gr.Interface(
20
  fn=CustomChatGPT,
21
+ inputs=[gr.inputs.Dropdown(choices=['Biotrack', 'Regulations', 'Best Practices', 'General Question'], label='Category'), gr.inputs.Textbox(lines=1, placeholder='Type here...', label='Your Question')],
22
  outputs=gr.outputs.Textbox(label='AI Response'),
23
  title="CannaAssist AI Assistant",
24
  description="Welcome to the CannaAssist AI Assistant. This tool is designed to provide expert guidance on BioTrack and cannabis regulations in New Mexico. DISCLAIMER: This is a proof of concept and not an official product.",