Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,9 @@
|
|
1 |
import chainlit as cl
|
2 |
from pydantic import BaseModel, Field
|
3 |
-
from dotenv import load_dotenv
|
4 |
import instructor
|
5 |
from openai import OpenAI
|
6 |
import os
|
7 |
|
8 |
-
load_dotenv()
|
9 |
-
|
10 |
# Patch the OpenAI client with Instructor
|
11 |
client = instructor.from_openai(OpenAI(api_key=os.environ['OPENAI_API_KEY']))
|
12 |
|
|
|
1 |
import chainlit as cl
|
2 |
from pydantic import BaseModel, Field
|
|
|
3 |
import instructor
|
4 |
from openai import OpenAI
|
5 |
import os
|
6 |
|
|
|
|
|
7 |
# Patch the OpenAI client with Instructor
|
8 |
client = instructor.from_openai(OpenAI(api_key=os.environ['OPENAI_API_KEY']))
|
9 |
|