Abs6187 commited on
Commit
2b3a758
1 Parent(s): 40d130f

Update AI_Chat_bot.py

Browse files
Files changed (1) hide show
  1. AI_Chat_bot.py +3 -3
AI_Chat_bot.py CHANGED
@@ -1,13 +1,13 @@
1
- import openai
2
  import gradio
3
 
4
- openai.api_key = "asst_LsHgpmVRi0ERjdb27YHrK96m"
5
 
6
  messages = [{"role": "system", "content": "You are a Indian Lawyer and Gave Advice according to Indian constitution"}]
7
 
8
  def CustomChatGPT(user_input):
9
  messages.append({"role": "user", "content": user_input})
10
- response = openai.ChatCompletion.create(
11
  model = "gpt-3.5-turbo",
12
  messages = messages
13
  )
 
1
+ import groq
2
  import gradio
3
 
4
+ groq.api_key = "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"
5
 
6
  messages = [{"role": "system", "content": "You are a Indian Lawyer and Gave Advice according to Indian constitution"}]
7
 
8
  def CustomChatGPT(user_input):
9
  messages.append({"role": "user", "content": user_input})
10
+ response = groq.ChatCompletion.create(
11
  model = "gpt-3.5-turbo",
12
  messages = messages
13
  )