vasilisklv
commited on
Commit
•
15e07d2
1
Parent(s):
15bc682
Update app.py
Browse files
app.py
CHANGED
@@ -12,12 +12,14 @@ import os
|
|
12 |
#------------------------------------------------------------------------------------------------
|
13 |
|
14 |
|
15 |
-
api_key = os.environ["
|
|
|
|
|
16 |
# define LLM model for story creation, with OpenAI's format
|
17 |
client = OpenAI(
|
18 |
# base_url="https://api-inference.huggingface.co/v1/",
|
19 |
# api_key=api_key
|
20 |
-
api_key=
|
21 |
)
|
22 |
|
23 |
# the model to utilize
|
|
|
12 |
#------------------------------------------------------------------------------------------------
|
13 |
|
14 |
|
15 |
+
api_key = os.environ["genai_stories"]
|
16 |
+
openai_api_key = os.environ["openai_key"]
|
17 |
+
|
18 |
# define LLM model for story creation, with OpenAI's format
|
19 |
client = OpenAI(
|
20 |
# base_url="https://api-inference.huggingface.co/v1/",
|
21 |
# api_key=api_key
|
22 |
+
api_key = openai_api_key
|
23 |
)
|
24 |
|
25 |
# the model to utilize
|