Upload app.py
Browse files
app.py
CHANGED
|
@@ -23,11 +23,11 @@ from dotenv import load_dotenv
|
|
| 23 |
from dotenv import load_dotenv
|
| 24 |
|
| 25 |
|
| 26 |
-
os.environ["
|
| 27 |
|
| 28 |
client = OpenAI(
|
| 29 |
base_url="https://api.endpoints.anyscale.com/v1",
|
| 30 |
-
api_key=os.environ['
|
| 31 |
)
|
| 32 |
|
| 33 |
# Define the embedding model and the vectorstore
|
|
|
|
| 23 |
from dotenv import load_dotenv
|
| 24 |
|
| 25 |
|
| 26 |
+
os.environ["anyscale_api_key"]=os.getenv("anyscale_api_key")
|
| 27 |
|
| 28 |
client = OpenAI(
|
| 29 |
base_url="https://api.endpoints.anyscale.com/v1",
|
| 30 |
+
api_key=os.environ['anyscale_api_key']
|
| 31 |
)
|
| 32 |
|
| 33 |
# Define the embedding model and the vectorstore
|