Ivan Roman commited on
Commit
34dd92f
·
1 Parent(s): 70b765e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -9,13 +9,15 @@ def CustomChatGPT(user_input):
9
  user_input = "In the context of BioTrack and cannabis regulations in New Mexico, " + user_input
10
  messages.append({"role": "user", "content": user_input})
11
  response = openai.ChatCompletion.create(
12
- model="gpt-3.5-turbo",
13
- messages=messages
14
  )
15
  ChatGPT_reply = response["choices"][0]["message"]["content"]
16
  messages.append({"role": "assistant", "content": ChatGPT_reply})
17
  return ChatGPT_reply
18
 
19
- demo = gradio.Interface(fn=CustomChatGPT, inputs="text", outputs="text", title="BioTrack AI Assistant")
 
 
20
 
21
  demo.launch()
 
9
  user_input = "In the context of BioTrack and cannabis regulations in New Mexico, " + user_input
10
  messages.append({"role": "user", "content": user_input})
11
  response = openai.ChatCompletion.create(
12
+ model="gpt-3.5-turbo",
13
+ messages=messages
14
  )
15
  ChatGPT_reply = response["choices"][0]["message"]["content"]
16
  messages.append({"role": "assistant", "content": ChatGPT_reply})
17
  return ChatGPT_reply
18
 
19
+ description = "Welcome to CannaAssist AI Assistant! This chatbot is designed to help answer your questions related to BioTrack and the cannabis regulations in New Mexico. Simply type your question or message in the input box and get an informative response from the assistant."
20
+
21
+ demo = gradio.Interface(fn=CustomChatGPT, inputs="text", outputs="text", title="BioTrack AI Assistant",description=description, css="body {background-color: red}")
22
 
23
  demo.launch()