Spaces:
Runtime error
Runtime error
Updated OpenAI API Key
Browse files- config.py +1 -1
- summarizer.py +2 -1
config.py
CHANGED
@@ -6,5 +6,5 @@ AWS_REGION = 'us-east-2'
|
|
6 |
S3_OBJ_BASE_URL = f'https://{BUCKET_NAME}.s3.{AWS_REGION}.amazonaws.com'
|
7 |
|
8 |
# OpenAI Credentials
|
9 |
-
OPENAI_API_KEY = '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'
|
10 |
OPENAI_API_URL = 'https://api.openai.com/v1/chat/completions'
|
|
|
6 |
S3_OBJ_BASE_URL = f'https://{BUCKET_NAME}.s3.{AWS_REGION}.amazonaws.com'
|
7 |
|
8 |
# OpenAI Credentials
|
9 |
+
OPENAI_API_KEY = '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' # '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'
|
10 |
OPENAI_API_URL = 'https://api.openai.com/v1/chat/completions'
|
summarizer.py
CHANGED
@@ -14,9 +14,10 @@ import re
|
|
14 |
from collections import Counter
|
15 |
# import nltk
|
16 |
from nltk.corpus import stopwords
|
|
|
17 |
|
18 |
## Added Key that is provided by Yasir bahi
|
19 |
-
os.environ["OPENAI_API_KEY"] = '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'
|
20 |
|
21 |
class Extract_Summary:
|
22 |
|
|
|
14 |
from collections import Counter
|
15 |
# import nltk
|
16 |
from nltk.corpus import stopwords
|
17 |
+
from config import OPENAI_API_KEY
|
18 |
|
19 |
## Added Key that is provided by Yasir bahi
|
20 |
+
os.environ["OPENAI_API_KEY"] = OPENAI_API_KEY # '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'
|
21 |
|
22 |
class Extract_Summary:
|
23 |
|