Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ logging.basicConfig(level=logging.INFO)
|
|
10 |
logger = logging.getLogger(__name__)
|
11 |
|
12 |
# Patch the OpenAI client with Instructor
|
13 |
-
client = instructor.from_openai(OpenAI(api_key=os.
|
14 |
|
15 |
# Define the Pydantic models
|
16 |
class UserProposal(BaseModel):
|
|
|
10 |
logger = logging.getLogger(__name__)
|
11 |
|
12 |
# Patch the OpenAI client with Instructor
|
13 |
+
client = instructor.from_openai(OpenAI(api_key=os.getenv('OPENAI_API_KEY')))
|
14 |
|
15 |
# Define the Pydantic models
|
16 |
class UserProposal(BaseModel):
|