Spaces:
Sleeping
Sleeping
themeetjani
commited on
Commit
•
4263424
1
Parent(s):
fe30fe5
Update pages/entity_extraction.py
Browse files
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.
|
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 |
{
|