Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,14 +1,11 @@
|
|
1 |
import os
|
2 |
-
from dotenv import load_dotenv
|
3 |
import openai
|
4 |
import streamlit as st
|
5 |
|
6 |
-
# Load environment variables from .env file
|
7 |
-
load_dotenv()
|
8 |
|
9 |
# Set up OpenAI API key
|
10 |
openai.api_key = os.getenv("API_KEY")
|
11 |
-
|
12 |
# Load context from file
|
13 |
with open("RamsayPersonality_V1.txt", "r") as file:
|
14 |
context = file.read()
|
|
|
1 |
import os
|
|
|
2 |
import openai
|
3 |
import streamlit as st
|
4 |
|
|
|
|
|
5 |
|
6 |
# Set up OpenAI API key
|
7 |
openai.api_key = os.getenv("API_KEY")
|
8 |
+
print(os.getenv("API_KEY"))
|
9 |
# Load context from file
|
10 |
with open("RamsayPersonality_V1.txt", "r") as file:
|
11 |
context = file.read()
|