themeetjani commited on
Commit
4263424
1 Parent(s): fe30fe5

Update pages/entity_extraction.py

Browse files
Files changed (1) hide show
  1. pages/entity_extraction.py +1 -1
pages/entity_extraction.py CHANGED
@@ -13,7 +13,7 @@ import os
13
  os.environ['OPENAI_API_KEY'] = "sk-proj-ZbejHdD4ZgJ5FFJ6LjMNT3BlbkFJ1WHLrJMFL03D8cMWSoFY"
14
  openai.api_key = os.environ['OPENAI_API_KEY']
15
  def openai1(text1):
16
- response = openai.chat.completions.create(
17
  model="gpt-4",
18
  messages=[
19
  {
 
13
  os.environ['OPENAI_API_KEY'] = "sk-proj-ZbejHdD4ZgJ5FFJ6LjMNT3BlbkFJ1WHLrJMFL03D8cMWSoFY"
14
  openai.api_key = os.environ['OPENAI_API_KEY']
15
  def openai1(text1):
16
+ response = openai.ChatCompletion.create(
17
  model="gpt-4",
18
  messages=[
19
  {