Spaces:
Sleeping
Sleeping
Update main.py
Browse files
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("
|
9 |
-
client = OpenAI(api_key=OPENAI_API_KEY
|
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.
|