Update app.py
Browse files
app.py
CHANGED
@@ -16,8 +16,8 @@ from video_processing import create_video
|
|
16 |
from content_generation import create_content, CONTENT_TYPES
|
17 |
from openai import OpenAI
|
18 |
|
19 |
-
# Khởi tạo client OpenAI
|
20 |
-
client = OpenAI(api_key=os.environ
|
21 |
|
22 |
def create_docx(content, output_path):
|
23 |
"""
|
|
|
16 |
from content_generation import create_content, CONTENT_TYPES
|
17 |
from openai import OpenAI
|
18 |
|
19 |
+
# Khởi tạo client OpenAI với API key từ biến môi trường
|
20 |
+
client = OpenAI(api_key=os.environ.get('OPENAI_API_KEY'))
|
21 |
|
22 |
def create_docx(content, output_path):
|
23 |
"""
|