rak-301 commited on
Commit
6d59c51
·
verified ·
1 Parent(s): 9ff1a7e

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -2
main.py CHANGED
@@ -9,7 +9,8 @@ from docx import Document
9
  import os
10
  from openai import OpenAI
11
 
12
- nest_asyncio.apply()
 
13
 
14
  prompt = """
15
 
@@ -56,7 +57,7 @@ def extract_text_from_file(file):
56
 
57
 
58
  def call_openai_api(job_description, resume_text):
59
- client = OpenAI(api_key ="sk-learning-bot-staging-account-SmwsiBUPWrJdslovYypiT3BlbkFJ70FRptLQcReZElmMFv6P")
60
 
61
  completion = client.chat.completions.create(
62
  model="gpt-4o",
 
9
  import os
10
  from openai import OpenAI
11
 
12
+
13
+ OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
14
 
15
  prompt = """
16
 
 
57
 
58
 
59
  def call_openai_api(job_description, resume_text):
60
+ client = OpenAI(api_key =OPENAI_API_KEY)
61
 
62
  completion = client.chat.completions.create(
63
  model="gpt-4o",