umair894 commited on
Commit
496f084
·
1 Parent(s): 8663f70

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -3
main.py CHANGED
@@ -4,9 +4,9 @@ import json
4
  import os
5
  app = FastAPI()
6
  #client = OpenAI(api_key=OPENAI_API_KEY)
7
- org = os.getenv("org")
8
- OPENAI_API_KEY = os.getenv("open_ai")
9
- client = OpenAI(api_key=OPENAI_API_KEY, organization=org)
10
 
11
  description = """
12
  ### A FastAPI endpoint that takes a string as input and returns a list of questions along with their corresponding answers. This endpoint will be used to generate questions from Job Discriptions.
 
4
  import os
5
  app = FastAPI()
6
  #client = OpenAI(api_key=OPENAI_API_KEY)
7
+ #org = os.getenv("org")
8
+ OPENAI_API_KEY = os.getenv("open_ai_key")
9
+ client = OpenAI(api_key=OPENAI_API_KEY) #, organization=org
10
 
11
  description = """
12
  ### A FastAPI endpoint that takes a string as input and returns a list of questions along with their corresponding answers. This endpoint will be used to generate questions from Job Discriptions.