Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ load_dotenv()
|
|
15 |
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
|
16 |
|
17 |
openai.api_key = OPENAI_API_KEY
|
18 |
-
client =
|
19 |
|
20 |
# Initialize the tokenizer for the model
|
21 |
tokenizer = tiktoken.get_encoding('p50k_base') # Use the appropriate encoding for your model
|
|
|
15 |
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
|
16 |
|
17 |
openai.api_key = OPENAI_API_KEY
|
18 |
+
client = openai
|
19 |
|
20 |
# Initialize the tokenizer for the model
|
21 |
tokenizer = tiktoken.get_encoding('p50k_base') # Use the appropriate encoding for your model
|