Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,37 +1,1895 @@
|
|
1 |
-
|
|
|
2 |
|
3 |
import os
|
4 |
-
import
|
5 |
-
import
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
|
13 |
-
|
14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
return
|
16 |
|
17 |
-
#
|
18 |
-
|
19 |
-
|
20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
-
|
23 |
-
|
|
|
|
|
24 |
|
25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
try:
|
27 |
-
|
28 |
-
except:
|
29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
except Exception as e:
|
32 |
-
|
33 |
import traceback
|
34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
|
|
|
36 |
if __name__ == "__main__":
|
37 |
-
|
|
|
|
1 |
+
# app.py
|
2 |
+
"""Main PPT Generator with 3-AI collaboration system"""
|
3 |
|
4 |
import os
|
5 |
+
import re
|
6 |
+
import json
|
7 |
+
import time
|
8 |
+
import logging
|
9 |
+
import gradio as gr
|
10 |
+
import requests
|
11 |
+
from typing import List, Dict, Generator
|
12 |
+
from datetime import datetime
|
13 |
|
14 |
+
# Import separated modules
|
15 |
+
from constants import (
|
16 |
+
EXAMPLE_TOPICS, AUDIENCE_TYPES, DESIGN_THEMES,
|
17 |
+
STYLE_TEMPLATES, PPT_TEMPLATES, SLIDE_TITLE_TRANSLATIONS
|
18 |
+
)
|
19 |
+
from content_utils import (
|
20 |
+
parse_executor_response, extract_relevant_content_from_executor,
|
21 |
+
extract_slide_section_from_executor, parse_slide_section,
|
22 |
+
extract_speaker_notes_from_section, read_uploaded_file,
|
23 |
+
generate_dynamic_slides, brave_search, generate_slide_content,
|
24 |
+
generate_presentation_notes, generate_closing_notes,
|
25 |
+
generate_conclusion_phrase, generate_prompt_with_llm,
|
26 |
+
generate_image, create_slide_preview_html, create_pptx_file,
|
27 |
+
PROCESS_FLOW_AVAILABLE
|
28 |
+
)
|
29 |
+
from ui_components import (
|
30 |
+
create_custom_slides_ui, load_example, update_audience_info,
|
31 |
+
update_theme_preview, update_template_info, update_custom_slides_visibility,
|
32 |
+
clear_all, get_css, get_usage_instructions
|
33 |
+
)
|
34 |
+
|
35 |
+
# Logging setup
|
36 |
+
logging.basicConfig(level=logging.INFO)
|
37 |
+
logger = logging.getLogger(__name__)
|
38 |
+
|
39 |
+
# Environment variables
|
40 |
+
REPLICATE_API_TOKEN = os.getenv("RAPI_TOKEN")
|
41 |
+
FRIENDLI_TOKEN = os.getenv("FRIENDLI_TOKEN")
|
42 |
+
BRAVE_API_TOKEN = os.getenv("BAPI_TOKEN")
|
43 |
+
API_URL = "https://api.friendli.ai/dedicated/v1/chat/completions"
|
44 |
+
BRAVE_SEARCH_URL = "https://api.search.brave.com/res/v1/web/search"
|
45 |
+
MODEL_ID = "dep89a2fld32mcm"
|
46 |
+
TEST_MODE = os.getenv("TEST_MODE", "false").lower() == "true"
|
47 |
+
|
48 |
+
# Global variables
|
49 |
+
current_slides_data = []
|
50 |
+
current_topic = ""
|
51 |
+
current_template = ""
|
52 |
+
current_theme = ""
|
53 |
+
uploaded_content = ""
|
54 |
+
current_language = "English"
|
55 |
+
conversation_history = []
|
56 |
+
|
57 |
+
# ===== ํต์ฌ: 3์ ํ์ ์์คํ
ํด๋์ค =====
|
58 |
+
class PPTCreationSystem:
|
59 |
+
def __init__(self):
|
60 |
+
self.token = FRIENDLI_TOKEN
|
61 |
+
self.bapi_token = BRAVE_API_TOKEN
|
62 |
+
self.api_url = API_URL
|
63 |
+
self.brave_url = BRAVE_SEARCH_URL
|
64 |
+
self.model_id = MODEL_ID
|
65 |
+
self.test_mode = TEST_MODE or (self.token == "YOUR_FRIENDLI_TOKEN")
|
66 |
+
|
67 |
+
if self.test_mode:
|
68 |
+
logger.warning("ํ
์คํธ ๋ชจ๋๋ก ์คํ๋ฉ๋๋ค.")
|
69 |
+
if self.bapi_token == "YOUR_BRAVE_API_TOKEN":
|
70 |
+
logger.warning("Brave API ํ ํฐ์ด ์ค์ ๋์ง ์์์ต๋๋ค.")
|
71 |
+
|
72 |
+
def create_headers(self):
|
73 |
+
"""API ํค๋ ์์ฑ"""
|
74 |
+
return {
|
75 |
+
"Authorization": f"Bearer {self.token}",
|
76 |
+
"Content-Type": "application/json"
|
77 |
+
}
|
78 |
+
|
79 |
+
def create_brave_headers(self):
|
80 |
+
"""Brave API ํค๋ ์์ฑ"""
|
81 |
+
return {
|
82 |
+
"Accept": "application/json",
|
83 |
+
"Accept-Encoding": "gzip",
|
84 |
+
"X-Subscription-Token": self.bapi_token
|
85 |
+
}
|
86 |
+
|
87 |
+
def create_supervisor_initial_prompt(self, ppt_topic: str) -> str:
|
88 |
+
"""๊ฐ๋
์ AI ์ด๊ธฐ ํ๋กฌํํธ ์์ฑ - PPT ๊ตฌ์กฐ ์ค๊ณ"""
|
89 |
+
return f"""๋น์ ์ ์ ๋ฌธ์ ์ธ PPT ๊ตฌ์กฐ๋ฅผ ์ค๊ณํ๋ ๊ฐ๋
์ AI์
๋๋ค.
|
90 |
+
|
91 |
+
PPT ์ฃผ์ : {ppt_topic}
|
92 |
+
|
93 |
+
์ด ์ฃผ์ ์ ๋ํ ์ ๋ฌธ์ ์ธ PPT๋ฅผ ๋ง๋ค๊ธฐ ์ํด:
|
94 |
+
|
95 |
+
1. **PPT ์ ์ฒด ๊ตฌ์กฐ ์ค๊ณ**
|
96 |
+
- ๋ชฉ์ ๊ณผ ํต์ฌ ๋ฉ์์ง ์ ์
|
97 |
+
- ํ๊ฒ ์ฒญ์ค ๋ถ์ ๋ฐ ํค ์ค์
|
98 |
+
- ์ ์ฒด ์ฌ๋ผ์ด๋ ๊ฐ์ ๋ฐ ํ๋ฆ ์ค๊ณ (10-15์ฅ ๊ถ์ฅ)
|
99 |
+
|
100 |
+
2. **์น์
๋ณ ๊ตฌ์ฑ ์ ์**
|
101 |
+
- ๋์
๋ถ (ํ์ง, ๋ชฉ์ฐจ, ๋ฐฐ๊ฒฝ)
|
102 |
+
- ๋ณธ๋ก (ํต์ฌ ๋ด์ฉ 3-4๊ฐ ์น์
)
|
103 |
+
- ๊ฒฐ๋ก ๋ถ (์์ฝ, ์์ฌ์ , Q&A)
|
104 |
+
|
105 |
+
3. **์กฐ์ฌ๊ฐ ํ์ํ ํต์ฌ ํค์๋**
|
106 |
+
์ด ์ฃผ์ ์ PPT๋ฅผ ์ํด ์กฐ์ฌ๊ฐ ํ์ํ 5-7๊ฐ์ ๊ตฌ์ฒด์ ์ธ ํค์๋๋ ๊ฒ์์ด๋ฅผ ์ ์ํ์ธ์.
|
107 |
+
|
108 |
+
ํค์๋๋ ๋ค์ ํ์์ผ๋ก ์ ์ํ์ธ์:
|
109 |
+
[๊ฒ์ ํค์๋]: ํค์๋1, ํค์๋2, ํค์๋3, ํค์๋4, ํค์๋5"""
|
110 |
+
|
111 |
+
def create_researcher_prompt(self, ppt_topic: str, supervisor_guidance: str, search_results: Dict[str, List[Dict]]) -> str:
|
112 |
+
"""์กฐ์ฌ์ AI ํ๋กฌํํธ ์์ฑ - PPT ์ฝํ
์ธ ์กฐ์ฌ"""
|
113 |
+
search_summary = ""
|
114 |
+
all_results = []
|
115 |
+
|
116 |
+
for keyword, results in search_results.items():
|
117 |
+
search_summary += f"\n\n**{keyword}์ ๋ํ ๊ฒ์ ๊ฒฐ๊ณผ:**\n"
|
118 |
+
for i, result in enumerate(results[:10], 1): # ์์ 10๊ฐ๋ง ํ์
|
119 |
+
search_summary += f"{i}. {result.get('title', 'N/A')} (์ ๋ขฐ๋: {result.get('credibility_score', 0):.2f})\n"
|
120 |
+
search_summary += f" - {result.get('description', 'N/A')}\n"
|
121 |
+
search_summary += f" - ์ถ์ฒ: {result.get('url', 'N/A')}\n"
|
122 |
+
if result.get('published'):
|
123 |
+
search_summary += f" - ๊ฒ์์ผ: {result.get('published')}\n"
|
124 |
+
|
125 |
+
all_results.extend(results)
|
126 |
+
|
127 |
+
# ๏ฟฝ๏ฟฝ์ ๊ฐ์ง
|
128 |
+
contradictions = self.detect_contradictions(all_results)
|
129 |
+
contradiction_text = ""
|
130 |
+
if contradictions:
|
131 |
+
contradiction_text = "\n\n**๋ฐ๊ฒฌ๋ ์ ๋ณด ๋ชจ์:**\n"
|
132 |
+
for cont in contradictions[:3]: # ์ต๋ 3๊ฐ๋ง ํ์
|
133 |
+
contradiction_text += f"- {cont['type']}: {cont['source1']} vs {cont['source2']}\n"
|
134 |
+
|
135 |
+
return f"""๋น์ ์ PPT ์ฝํ
์ธ ๋ฅผ ์ํ ์ ๋ณด๋ฅผ ์กฐ์ฌํ๊ณ ์ ๋ฆฌํ๋ ์กฐ์ฌ์ AI์
๋๋ค.
|
136 |
+
|
137 |
+
PPT ์ฃผ์ : {ppt_topic}
|
138 |
+
|
139 |
+
๊ฐ๋
์ AI์ ๊ตฌ์กฐ ์ค๊ณ:
|
140 |
+
{supervisor_guidance}
|
141 |
+
|
142 |
+
๋ธ๋ ์ด๋ธ ๊ฒ์ ๊ฒฐ๊ณผ (์ ๋ขฐ๋ ์ ์ ํฌํจ):
|
143 |
+
{search_summary}
|
144 |
+
{contradiction_text}
|
145 |
+
|
146 |
+
์ ๊ฒ์ ๊ฒฐ๊ณผ๋ฅผ ๋ฐํ์ผ๋ก PPT์ ํฌํจํ ํต์ฌ ์ฝํ
์ธ ๋ฅผ ์ ๋ฆฌํ์ธ์:
|
147 |
+
|
148 |
+
1. **์๊ฐ์ ์๋ฃ ๊ฐ๋ฅํ ํต๊ณ/์์น**
|
149 |
+
- ๊ทธ๋ํ๋ ์ฐจํธ๋ก ํํ ๊ฐ๋ฅํ ๋ฐ์ดํฐ
|
150 |
+
- ์ธํฌ๊ทธ๋ํฝ์ผ๋ก ๋ณํ ๊ฐ๋ฅํ ์ ๋ณด
|
151 |
+
|
152 |
+
2. **ํต์ฌ ์ธ์ฌ์ดํธ์ ํธ๋ ๋**
|
153 |
+
- ์ฒญ์ค์ ๊ด์ฌ์ ๋ ์ ์๋ ์ต์ ์ ๋ณด
|
154 |
+
- ์
๊ณ ๋ํฅ๊ณผ ๋ฏธ๋ ์ ๋ง
|
155 |
+
|
156 |
+
3. **์ฌ๋ก ์ฐ๊ตฌ ๋ฐ ์ฑ๊ณต ์คํ ๋ฆฌ**
|
157 |
+
- ์ค์ ์ ์ฉ ์ฌ๋ก
|
158 |
+
- ๋ฒค์น๋งํฌํ ์ ์๋ ๋ชจ๋ฒ ์ฌ๋ก
|
159 |
+
|
160 |
+
4. **์ ๋ฌธ๊ฐ ์๊ฒฌ ๋ฐ ์ธ์ฉ๊ตฌ**
|
161 |
+
- ๊ถ์ ์๋ ์ถ์ฒ์ ์๊ฒฌ
|
162 |
+
- PPT์ ์ธ์ฉํ ์ ์๋ ๋ช
์ธ
|
163 |
+
|
164 |
+
5. **์๊ฐ ์๋ฃ ์ถ์ฒ**
|
165 |
+
- ๊ฐ ์ฌ๋ผ์ด๋์ ์ ํฉํ ์ด๋ฏธ์ง/์์ด์ฝ ์ ์
|
166 |
+
- ๋ํ๋ ๋ค์ด์ด๊ทธ๋จ ์์ด๋์ด"""
|
167 |
+
|
168 |
+
def create_supervisor_execution_prompt(self, ppt_topic: str, research_summary: str) -> str:
|
169 |
+
"""๊ฐ๋
์ AI์ ์คํ ์ง์ ํ๋กฌํํธ - PPT ์ ์ ์ง์"""
|
170 |
+
return f"""๋น์ ์ PPT ์ ์์ ์ด๊ดํ๋ ๊ฐ๋
์ AI์
๋๋ค.
|
171 |
+
|
172 |
+
PPT ์ฃผ์ : {ppt_topic}
|
173 |
+
|
174 |
+
์กฐ์ฌ์ AI๊ฐ ์ ๋ฆฌํ ์ฝํ
์ธ :
|
175 |
+
{research_summary}
|
176 |
+
|
177 |
+
์ ์กฐ์ฌ ๋ด์ฉ์ ๊ธฐ๋ฐ์ผ๋ก ์คํ์ AI์๊ฒ ๊ตฌ์ฒด์ ์ธ PPT ์ ์ ์ง์๋ฅผ ๋ด๋ ค์ฃผ์ธ์:
|
178 |
+
|
179 |
+
1. **์ฌ๋ผ์ด๋๋ณ ์์ธ ๊ตฌ์ฑ**
|
180 |
+
- ๊ฐ ์ฌ๋ผ์ด๋์ ์ ๋ชฉ๊ณผ ํต์ฌ ๋ฉ์์ง
|
181 |
+
- ํฌํจํ ๊ตฌ์ฒด์ ์ธ ์ฝํ
์ธ ์ง์
|
182 |
+
- ์๊ฐ ์๋ฃ ๋ฐฐ์น ๋ฐฉ์
|
183 |
+
|
184 |
+
2. **๋์์ธ ๊ฐ์ด๋๋ผ์ธ**
|
185 |
+
- ์ ์ฒด์ ์ธ ํค๊ณผ ์คํ์ผ (์ ๋ฌธ์ /์ฐฝ์์ /๋ฏธ๋๋ฉ ๋ฑ)
|
186 |
+
- ์์ ํ๋ ํธ ์ ์
|
187 |
+
- ํฐํธ ๋ฐ ๋ ์ด์์ ์์น
|
188 |
+
|
189 |
+
3. **์คํ ๋ฆฌํ
๋ง ์ ๋ต**
|
190 |
+
- ๋์
๋ถ์์ ์ฒญ์ค์ ๊ด์ฌ์ ๋๋ ๋ฐฉ๋ฒ
|
191 |
+
- ํต์ฌ ๋ฉ์์ง ์ ๋ฌ ์์
|
192 |
+
- ๊ฒฐ๋ก ๋ถ์ ์ํฉํธ ์๋ ๋ง๋ฌด๋ฆฌ
|
193 |
+
|
194 |
+
4. **์๊ฐํ ์ง์นจ**
|
195 |
+
- ๊ฐ ๋ฐ์ดํฐ์ ์ต์ ์๊ฐํ ๋ฐฉ๋ฒ
|
196 |
+
- ๋ณต์กํ ๊ฐ๋
์ ๋จ์ํ ๋ฐฉ์
|
197 |
+
- ์ ๋๋ฉ์ด์
ํจ๊ณผ ์ ์"""
|
198 |
+
|
199 |
+
def create_executor_prompt(self, ppt_topic: str, supervisor_guidance: str, research_summary: str) -> str:
|
200 |
+
"""์คํ์ AI ํ๋กฌํํธ ์์ฑ - PPT ์ฌ๋ผ์ด๋ ์์ฑ"""
|
201 |
+
return f"""๋น์ ์ ์ค์ PPT ์ฌ๋ผ์ด๋ ๋ด์ฉ์ ์์ฑํ๋ ์คํ์ AI์
๋๋ค.
|
202 |
+
|
203 |
+
PPT ์ฃผ์ : {ppt_topic}
|
204 |
+
|
205 |
+
์กฐ์ฌ์ AI๊ฐ ์ ๋ฆฌํ ์ฝํ
์ธ :
|
206 |
+
{research_summary}
|
207 |
+
|
208 |
+
๊ฐ๋
์ AI์ ์ ์ ์ง์:
|
209 |
+
{supervisor_guidance}
|
210 |
+
|
211 |
+
์ ์ ๋ณด๋ฅผ ๋ฐํ์ผ๋ก ์ค์ PPT ์ฌ๋ผ์ด๋๋ฅผ ์์ฑํ์ธ์:
|
212 |
+
|
213 |
+
1. **๊ฐ ์ฌ๋ผ์ด๋๋ฅผ ๋ค์ ํ์์ผ๋ก ์์ฑ**:
|
214 |
+
[์ฌ๋ผ์ด๋ X]
|
215 |
+
์ ๋ชฉ:
|
216 |
+
๋ถ์ ๋ชฉ: (์ ํ์ฌํญ)
|
217 |
+
โข ๐ฏ ์ฒซ ๋ฒ์งธ ํต์ฌ ํฌ์ธํธ
|
218 |
+
โข ๐ก ๋ ๋ฒ์งธ ํต์ฌ ํฌ์ธํธ
|
219 |
+
โข ๐ ์ธ ๋ฒ์งธ ํต์ฌ ํฌ์ธํธ
|
220 |
+
โข โ
๋ค ๋ฒ์งธ ํต์ฌ ํฌ์ธํธ
|
221 |
+
โข ๐ ๋ค์ฏ ๋ฒ์งธ ํต์ฌ ํฌ์ธํธ
|
222 |
+
๋ฐํ์ ๋
ธํธ: (์ค์ ๋ฐํํ ๋ ์ฌ์ฉํ ๊ตฌ์ด์ฒด ์คํฌ๋ฆฝํธ - ์ต์ 3-4๋ฌธ์ฅ)
|
223 |
+
|
224 |
+
2. **์์ฑ ์์น**
|
225 |
+
- ํ ์ฌ๋ผ์ด๋์ ํ๋์ ํต์ฌ ๋ฉ์์ง
|
226 |
+
- ํ
์คํธ๋ ์ต์ํ, ์๊ฐ์ ์์ ๊ทน๋ํ
|
227 |
+
- 6x6 ๊ท์น ์ค์ (6์ค ์ดํ, ์ค๋น 6๋จ์ด ์ดํ)
|
228 |
+
- ์ ๋ฌธ์ ์ด๋ฉด์๋ ์ดํดํ๊ธฐ ์ฌ์ด ์ธ์ด ์ฌ์ฉ
|
229 |
+
- ๊ฐ ๋ถ๋ฆฟ ํฌ์ธํธ๋ ๋ฐ๋์ ์ด๋ชจ์ง๋ก ์์
|
230 |
+
|
231 |
+
3. **๋ฐํ์ ๋
ธํธ ์์ฑ ์ง์นจ**
|
232 |
+
- ์ฌ๋ผ์ด๋ ๋ด์ฉ์ ์์ฐ์ค๋ฝ๊ฒ ์ค๋ช
ํ๋ ๊ตฌ์ด์ฒด ์ฌ์ฉ
|
233 |
+
- ๊ฐ ํฌ์ธํธ๋ฅผ ํ์ด์ ์ค๋ช
ํ๊ณ ์ฐ๊ฒฐ
|
234 |
+
- ์ฒญ์ค๊ณผ ์ํตํ๋ ๋๋์ ๋ํ์ฒด ("์ฌ๋ฌ๋ถ", "์ฐ๋ฆฌ๊ฐ", "ํจ๊ป")
|
235 |
+
- ์ต์ 3-4๋ฌธ์ฅ์ผ๋ก ํ๋ถํ๊ฒ ์์ฑ
|
236 |
+
- ์์: "์, ์ด์ ์ฐ๋ฆฌ๊ฐ ์ฃผ๋ชฉํด์ผ ํ ํต์ฌ ํฌ์ธํธ๋ค์ ์ดํด๋ณด๊ฒ ์ต๋๋ค. ์ฒซ ๋ฒ์งธ๋ก ์์ฅ ๊ท๋ชจ๋ฅผ ๋ณด์๋ฉด..."
|
237 |
+
|
238 |
+
4. **ํ์ ํฌํจ ์ฌ๋ผ์ด๋**
|
239 |
+
- ํ์ง (์ ๋ชฉ, ๋ถ์ ๋ชฉ, ๋ฐํ์/๋ ์ง)
|
240 |
+
- ๋ชฉ์ฐจ
|
241 |
+
- ํต์ฌ ๋ด์ฉ ์ฌ๋ผ์ด๋๋ค
|
242 |
+
- ์์ฝ/๊ฒฐ๋ก
|
243 |
+
- Q&A/๊ฐ์ฌ ์ฌ๋ผ์ด๋"""
|
244 |
+
|
245 |
+
def create_supervisor_review_prompt(self, ppt_topic: str, executor_response: str, research_summary: str) -> str:
|
246 |
+
"""๊ฐ๋
์ AI์ ๊ฒํ ํ๋กฌํํธ - PPT ๊ฒํ ๋ฐ ํผ๋๋ฐฑ"""
|
247 |
+
return f"""๋น์ ์ PPT ํ์ง์ ๊ฒํ ํ๊ณ ๊ฐ์ ์ ์ ์ ์ํ๋ ๊ฐ๋
์ AI์
๋๋ค.
|
248 |
+
|
249 |
+
PPT ์ฃผ์ : {ppt_topic}
|
250 |
+
|
251 |
+
์กฐ์ฌ์ AI๊ฐ ์ ๊ณตํ ์ฝํ
์ธ :
|
252 |
+
{research_summary}
|
253 |
+
|
254 |
+
์คํ์ AI์ PPT ์ด์:
|
255 |
+
{executor_response}
|
256 |
+
|
257 |
+
์ PPT ์ด์์ ๊ฒํ ํ๊ณ ๋ค์ ๊ด์ ์์ ๊ตฌ์ฒด์ ์ธ ํผ๋๋ฐฑ์ ์ ๊ณตํ์ธ์:
|
258 |
+
|
259 |
+
1. **์ฝํ
์ธ ํ์ง**
|
260 |
+
- ์กฐ์ฌ ๋ด์ฉ์ด ์ถฉ๋ถํ ๋ฐ์๋์๋์ง
|
261 |
+
- ๊ฐ ์ฌ๋ผ์ด๋์ ๋ฉ์์ง๊ฐ ๋ช
ํํ์ง
|
262 |
+
- ๋
ผ๋ฆฌ์ ํ๋ฆ์ด ์์ฐ์ค๋ฌ์ด์ง
|
263 |
+
|
264 |
+
2. **์๊ฐ์ ํจ๊ณผ**
|
265 |
+
- ํ
์คํธ์ ์๊ฐ ์์์ ๊ท ํ
|
266 |
+
- ์ฌ๋ผ์ด๋๋ณ ์ผ๊ด์ฑ
|
267 |
+
- ์ฒญ์ค์ ์ดํด๋ฅผ ๋๋ ๊ตฌ์ฑ์ธ์ง
|
268 |
+
|
269 |
+
3. **๋ฐํ ์ค๋น๋**
|
270 |
+
- ๋ฐํ์ ๋
ธํธ์ ์ถฉ์ค์ฑ
|
271 |
+
- ์์ ์ง๋ฌธ์ ๋ํ ๋๋น
|
272 |
+
- ์๊ฐ ๋ฐฐ๋ถ์ ์ ์ ์ฑ
|
273 |
+
|
274 |
+
4. **๊ฐ์ ํ์์ฌํญ**
|
275 |
+
- ๊ตฌ์ฒด์ ์ธ ์์ ์ง์์ฌํญ
|
276 |
+
- ์ถ๊ฐํด์ผ ํ ๋ด์ฉ
|
277 |
+
- ์ญ์ ํ๊ฑฐ๋ ๊ฐ์ํํ ๋ถ๋ถ
|
278 |
+
|
279 |
+
5. **์ต์ข
์ ๊ฒ์ฌํญ**
|
280 |
+
- ์คํ๋ ๋ฌธ๋ฒ ์ค๋ฅ
|
281 |
+
- ๋ฐ์ดํฐ์ ์ ํ์ฑ
|
282 |
+
- ์ ๋ฌธ์ฑ๊ณผ ์ ๋ขฐ์ฑ"""
|
283 |
+
|
284 |
+
def create_executor_final_prompt(self, ppt_topic: str, initial_response: str, supervisor_feedback: str, research_summary: str) -> str:
|
285 |
+
"""์คํ์ AI ์ต์ข
PPT ํ๋กฌํํธ"""
|
286 |
+
return f"""๋น์ ์ ์ต์ข
PPT๋ฅผ ์์ฑํ๋ ์คํ์ AI์
๋๋ค.
|
287 |
+
|
288 |
+
PPT ์ฃผ์ : {ppt_topic}
|
289 |
+
|
290 |
+
์กฐ์ฌ์ AI์ ์ฝํ
์ธ :
|
291 |
+
{research_summary}
|
292 |
+
|
293 |
+
๋น์ ์ ์ด๊ธฐ PPT ์ด์:
|
294 |
+
{initial_response}
|
295 |
+
|
296 |
+
๊ฐ๋
์ AI์ ํผ๋๋ฐฑ:
|
297 |
+
{supervisor_feedback}
|
298 |
+
|
299 |
+
์ ํผ๋๋ฐฑ์ ์์ ํ ๋ฐ์ํ์ฌ ์ต์ข
PPT๋ฅผ ์์ฑํ์ธ์:
|
300 |
+
|
301 |
+
1. **๊ฐ์ ์ฌํญ ๋ฐ์**
|
302 |
+
- ๊ฐ๋
์์ ๋ชจ๋ ํผ๋๋ฐฑ ์ ์ฉ
|
303 |
+
- ์คํ ๋ฆฌ๋ผ์ธ ๊ฐํ
|
304 |
+
- ์๊ฐ์ ์ผ๊ด์ฑ ํ๋ณด
|
305 |
+
|
306 |
+
2. **๋ฐํ์ ๋
ธํธ ๊ฐํ**
|
307 |
+
- ๊ฐ ์ฌ๋ผ์ด๋๋ง๋ค ํ๋ถํ ๊ตฌ์ด์ฒด ๋ฐํ ์คํฌ๋ฆฝํธ ์์ฑ
|
308 |
+
- ์ต์ 4-5๋ฌธ์ฅ์ผ๋ก ์์ธํ๊ฒ
|
309 |
+
- ์ค์ ๋ฐํ ์ํฉ์ ๊ฐ์ ํ ์์ฐ์ค๋ฌ์ด ๋ํ์ฒด
|
310 |
+
- ์์: "์, ์ด์ ์์ฅ ํํฉ์ ์ดํด๋ณด๊ฒ ์ต๋๋ค. ์ฌ๋ฌ๋ถ๋ ์์๋ค์ํผ ์ต๊ทผ ๋์งํธ ์ ํ์ด ๊ฐ์ํ๋๋ฉด์..."
|
311 |
+
|
312 |
+
3. **์ต์ข
ํ์ง ์ฒดํฌ**
|
313 |
+
- ์ ๋ฌธ์ฑ๊ณผ ์์ฑ๋ ํฅ์
|
314 |
+
- ์คํ ๋ฐ ๋ฌธ๋ฒ ๊ฒํ
|
315 |
+
- ๋
ผ๋ฆฌ์ ํ๋ฆ ์ฌํ์ธ
|
316 |
+
|
317 |
+
4. **ํ๋ ์ ํ
์ด์
์ค๋น**
|
318 |
+
- ๊ฐ ์ฌ๋ผ์ด๋๋ณ ๋ฐํ ์คํฌ๋ฆฝํธ ์ถ๊ฐ
|
319 |
+
- ์์ ์ง๋ฌธ๊ณผ ๋ต๋ณ ์ค๋น
|
320 |
+
- ์๊ฐ ๋ฐฐ๋ถ ์ ์ (20๋ถ ๋ฐํ ๊ธฐ์ค)
|
321 |
+
|
322 |
+
5. **์ถ๊ฐ ์๋ฃ**
|
323 |
+
- ๋ฐฑ์
์ฌ๋ผ์ด๋ ์ ์
|
324 |
+
- ์ฐธ๊ณ ์๋ฃ ๋ชฉ๋ก
|
325 |
+
- ์ธ์์ฉ ํธ๋์์ ๋ฒ์ ์ ์"""
|
326 |
+
|
327 |
+
def extract_keywords(self, supervisor_response: str) -> List[str]:
|
328 |
+
"""๊ฐ๋
์ ์๋ต์์ ํค์๋ ์ถ์ถ"""
|
329 |
+
keywords = []
|
330 |
+
|
331 |
+
# [๊ฒ์ ํค์๋]: ํ์์ผ๋ก ํค์๋ ์ฐพ๊ธฐ
|
332 |
+
keyword_match = re.search(r'\[๊ฒ์ ํค์๋\]:\s*(.+)', supervisor_response, re.IGNORECASE)
|
333 |
+
if keyword_match:
|
334 |
+
keyword_str = keyword_match.group(1)
|
335 |
+
keywords = [k.strip() for k in keyword_str.split(',') if k.strip()]
|
336 |
+
|
337 |
+
# ํค์๋๊ฐ ์์ผ๋ฉด ๊ธฐ๋ณธ ํค์๋ ์์ฑ
|
338 |
+
if not keywords:
|
339 |
+
keywords = ["industry trends", "market analysis", "case studies", "best practices", "future outlook"]
|
340 |
+
|
341 |
+
return keywords[:7] # ์ต๋ 7๊ฐ๋ก ์ ํ
|
342 |
+
|
343 |
+
def generate_synonyms(self, keyword: str) -> List[str]:
|
344 |
+
"""ํค์๋์ ๋์์ด/์ ์ฌ์ด ์์ฑ"""
|
345 |
+
synonyms = {
|
346 |
+
"trend": ["tendency", "direction", "movement", "pattern"],
|
347 |
+
"analysis": ["evaluation", "assessment", "study", "research"],
|
348 |
+
"strategy": ["approach", "plan", "tactics", "methodology"],
|
349 |
+
"market": ["industry", "sector", "business", "commerce"],
|
350 |
+
"innovation": ["breakthrough", "advancement", "revolution", "disruption"],
|
351 |
+
"growth": ["expansion", "development", "progress", "advancement"],
|
352 |
+
"presentation": ["pitch", "proposal", "demonstration", "showcase"],
|
353 |
+
"data": ["statistics", "metrics", "analytics", "insights"],
|
354 |
+
"technology": ["tech", "digital", "IT", "innovation"],
|
355 |
+
"business": ["enterprise", "corporate", "commercial", "company"]
|
356 |
+
}
|
357 |
+
|
358 |
+
# ํค์๋ ์ ๊ทํ
|
359 |
+
keyword_lower = keyword.lower()
|
360 |
+
|
361 |
+
# ์ง์ ๋งค์นญ๋๋ ๋์์ด๊ฐ ์์ผ๋ฉด ๋ฐํ
|
362 |
+
if keyword_lower in synonyms:
|
363 |
+
return synonyms[keyword_lower][:2] # ์ต๋ 2๊ฐ
|
364 |
+
|
365 |
+
# ๋ถ๋ถ ๋งค์นญ ํ์ธ
|
366 |
+
for key, values in synonyms.items():
|
367 |
+
if key in keyword_lower or keyword_lower in key:
|
368 |
+
return values[:2]
|
369 |
+
|
370 |
+
# ๋์์ด๊ฐ ์์ผ๋ฉด ๋น ๋ฆฌ์คํธ
|
371 |
+
return []
|
372 |
+
|
373 |
+
def calculate_credibility_score(self, result: Dict) -> float:
|
374 |
+
"""๊ฒ์ ๊ฒฐ๊ณผ์ ์ ๋ขฐ๋ ์ ์ ๊ณ์ฐ (0-1)"""
|
375 |
+
score = 0.5 # ๊ธฐ๋ณธ ์ ์
|
376 |
+
|
377 |
+
url = result.get('url', '')
|
378 |
+
title = result.get('title', '')
|
379 |
+
description = result.get('description', '')
|
380 |
+
|
381 |
+
# URL ๊ธฐ๋ฐ ์ ์
|
382 |
+
trusted_domains = [
|
383 |
+
'.edu', '.gov', '.org', 'wikipedia.org', 'harvard.edu',
|
384 |
+
'mckinsey.com', 'deloitte.com', 'pwc.com', 'gartner.com',
|
385 |
+
'forrester.com', 'statista.com', 'bloomberg.com', 'reuters.com'
|
386 |
+
]
|
387 |
|
388 |
+
for domain in trusted_domains:
|
389 |
+
if domain in url:
|
390 |
+
score += 0.2
|
391 |
+
break
|
392 |
+
|
393 |
+
# HTTPS ์ฌ์ฉ ์ฌ๋ถ
|
394 |
+
if url.startswith('https://'):
|
395 |
+
score += 0.1
|
396 |
+
|
397 |
+
# ์ ๋ชฉ๊ณผ ์ค๋ช
์ ๊ธธ์ด (๋๋ฌด ์งง์ผ๋ฉด ์ ๋ขฐ๋ ๊ฐ์)
|
398 |
+
if len(title) > 20:
|
399 |
+
score += 0.05
|
400 |
+
if len(description) > 50:
|
401 |
+
score += 0.05
|
402 |
+
|
403 |
+
# ๊ด๊ณ /์คํธ ํค์๋ ์ฒดํฌ
|
404 |
+
spam_keywords = ['buy now', 'sale', 'discount', 'click here', '100% free']
|
405 |
+
if any(spam in (title + description).lower() for spam in spam_keywords):
|
406 |
+
score -= 0.3
|
407 |
+
|
408 |
+
# ๋ ์ง ์ ๋ณด๊ฐ ์์ผ๋ฉด ๊ฐ์ฐ์
|
409 |
+
if any(year in description for year in ['2024', '2023', '2022']):
|
410 |
+
score += 0.1
|
411 |
+
|
412 |
+
return max(0, min(1, score)) # 0-1 ๋ฒ์๋ก ์ ํ
|
413 |
+
|
414 |
+
def detect_contradictions(self, results: List[Dict]) -> List[Dict]:
|
415 |
+
"""๊ฒ์ ๊ฒฐ๊ณผ ๊ฐ ๋ชจ์ ๊ฐ์ง"""
|
416 |
+
contradictions = []
|
417 |
+
|
418 |
+
# ๊ฐ๋จํ ๋ชจ์ ๊ฐ์ง ํจํด
|
419 |
+
opposite_pairs = [
|
420 |
+
("increase", "decrease"),
|
421 |
+
("improve", "worsen"),
|
422 |
+
("effective", "ineffective"),
|
423 |
+
("success", "failure"),
|
424 |
+
("benefit", "harm"),
|
425 |
+
("positive", "negative"),
|
426 |
+
("growth", "decline")
|
427 |
+
]
|
428 |
+
|
429 |
+
# ๊ฒฐ๊ณผ๋ค์ ๋น๊ต
|
430 |
+
for i in range(len(results)):
|
431 |
+
for j in range(i + 1, len(results)):
|
432 |
+
desc1 = results[i].get('description', '').lower()
|
433 |
+
desc2 = results[j].get('description', '').lower()
|
434 |
+
|
435 |
+
# ๋ฐ๋ ๊ฐ๋
์ด ํฌํจ๋์ด ์๋์ง ํ์ธ
|
436 |
+
for word1, word2 in opposite_pairs:
|
437 |
+
if (word1 in desc1 and word2 in desc2) or (word2 in desc1 and word1 in desc2):
|
438 |
+
# ๊ฐ์ ์ฃผ์ ์ ๋ํด ๋ฐ๋ ์๊ฒฌ์ธ์ง ํ์ธ
|
439 |
+
common_words = set(desc1.split()) & set(desc2.split())
|
440 |
+
if len(common_words) > 5: # ๊ณตํต ๋จ์ด๊ฐ 5๊ฐ ์ด์์ด๋ฉด ๊ฐ์ ์ฃผ์ ๋ก ๊ฐ์ฃผ
|
441 |
+
contradictions.append({
|
442 |
+
'source1': results[i]['url'],
|
443 |
+
'source2': results[j]['url'],
|
444 |
+
'type': f"{word1} vs {word2}",
|
445 |
+
'desc1': results[i]['description'][:100],
|
446 |
+
'desc2': results[j]['description'][:100]
|
447 |
+
})
|
448 |
+
|
449 |
+
return contradictions
|
450 |
+
|
451 |
+
def brave_search(self, query: str) -> List[Dict]:
|
452 |
+
"""Brave Search API ํธ์ถ"""
|
453 |
+
if self.test_mode or self.bapi_token == "YOUR_BRAVE_API_TOKEN":
|
454 |
+
# ํ
์คํธ ๋ชจ๋์์๋ ์๋ฎฌ๋ ์ด์
๋ ๊ฒฐ๊ณผ ๋ฐํ
|
455 |
+
test_results = []
|
456 |
+
for i in range(5):
|
457 |
+
test_results.append({
|
458 |
+
"title": f"{query} - Industry Report {i+1}",
|
459 |
+
"description": f"Comprehensive analysis of {query} including market trends, key statistics, and future projections for strategic planning.",
|
460 |
+
"url": f"https://report{i+1}.com/{query.replace(' ', '-')}",
|
461 |
+
"credibility_score": 0.7 + (i * 0.05)
|
462 |
+
})
|
463 |
+
return test_results
|
464 |
+
|
465 |
+
try:
|
466 |
+
params = {
|
467 |
+
"q": query,
|
468 |
+
"count": 20, # 20๊ฐ๋ก ์ฆ๊ฐ
|
469 |
+
"safesearch": "moderate",
|
470 |
+
"freshness": "pw" # Past week for recent results
|
471 |
+
}
|
472 |
+
|
473 |
+
response = requests.get(
|
474 |
+
self.brave_url,
|
475 |
+
headers=self.create_brave_headers(),
|
476 |
+
params=params,
|
477 |
+
timeout=10
|
478 |
+
)
|
479 |
+
|
480 |
+
if response.status_code == 200:
|
481 |
+
data = response.json()
|
482 |
+
results = []
|
483 |
+
for item in data.get("web", {}).get("results", [])[:20]:
|
484 |
+
result = {
|
485 |
+
"title": item.get("title", ""),
|
486 |
+
"description": item.get("description", ""),
|
487 |
+
"url": item.get("url", ""),
|
488 |
+
"published": item.get("published", "")
|
489 |
+
}
|
490 |
+
# ์ ๋ขฐ๋ ์ ์ ๊ณ์ฐ
|
491 |
+
result["credibility_score"] = self.calculate_credibility_score(result)
|
492 |
+
results.append(result)
|
493 |
+
|
494 |
+
# ์ ๋ขฐ๋ ์ ์ ๊ธฐ์ค์ผ๋ก ์ ๋ ฌ
|
495 |
+
results.sort(key=lambda x: x['credibility_score'], reverse=True)
|
496 |
+
return results
|
497 |
+
else:
|
498 |
+
logger.error(f"Brave API ์ค๋ฅ: {response.status_code}")
|
499 |
+
return []
|
500 |
+
|
501 |
+
except Exception as e:
|
502 |
+
logger.error(f"Brave ๊ฒ์ ์ค ์ค๋ฅ: {str(e)}")
|
503 |
+
return []
|
504 |
+
|
505 |
+
def simulate_streaming(self, text: str, role: str) -> Generator[str, None, None]:
|
506 |
+
"""ํ
์คํธ ๋ชจ๋์์ ์คํธ๋ฆฌ๋ฐ ์๋ฎฌ๋ ์ด์
"""
|
507 |
+
words = text.split()
|
508 |
+
for i in range(0, len(words), 3):
|
509 |
+
chunk = " ".join(words[i:i+3])
|
510 |
+
yield chunk + " "
|
511 |
+
time.sleep(0.05)
|
512 |
+
|
513 |
+
def call_llm_streaming(self, messages: List[Dict[str, str]], role: str) -> Generator[str, None, None]:
|
514 |
+
"""์คํธ๋ฆฌ๋ฐ LLM API ํธ์ถ"""
|
515 |
+
|
516 |
+
# ํ
์คํธ ๋ชจ๋
|
517 |
+
if self.test_mode:
|
518 |
+
logger.info(f"ํ
์คํธ ๋ชจ๋ ์คํธ๋ฆฌ๋ฐ - Role: {role}")
|
519 |
+
test_responses = {
|
520 |
+
"supervisor_initial": """์ ๋ฌธ์ ์ธ PPT ๊ตฌ์กฐ๋ฅผ ์ค๊ณํ๊ฒ ์ต๋๋ค.
|
521 |
+
|
522 |
+
## 1. PPT ์ ์ฒด ๊ตฌ์กฐ ์ค๊ณ
|
523 |
+
|
524 |
+
**๋ชฉ์ **: ๋์งํธ ํธ๋์คํฌ๋ฉ์ด์
์ ํต์ฌ ์์์ ์ฑ๊ณต ์ ๋ต์ ๋ช
ํํ๊ฒ ์ ๋ฌ
|
525 |
+
**ํ๊ฒ ์ฒญ์ค**: ๊ฒฝ์์ง ๋ฐ ์์ฌ๊ฒฐ์ ์
|
526 |
+
**ํค**: ์ ๋ฌธ์ ์ด๊ณ ์ค๋๋ ฅ ์๋ ๋น์ฆ๋์ค ์คํ์ผ
|
527 |
+
**์ ์ฒด ์ฌ๋ผ์ด๋**: 12์ฅ
|
528 |
+
|
529 |
+
## 2. ์น์
๋ณ ๊ตฌ์ฑ
|
530 |
+
|
531 |
+
### ๋์
๋ถ (3์ฅ)
|
532 |
+
- ์ฌ๋ผ์ด๋ 1: ํ์ง - ์ํฉํธ ์๋ ์ ๋ชฉ๊ณผ ๋น์ฃผ์ผ
|
533 |
+
- ์ฌ๋ผ์ด๋ 2: ๋ชฉ์ฐจ - ์ ์ฒด ํ๋ฆ ์ ์
|
534 |
+
- ์ฌ๋ผ์ด๋ 3: ๋์งํธ ํธ๋์คํฌ๋ฉ์ด์
์ ํ์์ฑ
|
535 |
+
|
536 |
+
### ๋ณธ๋ก (7์ฅ)
|
537 |
+
**์น์
1: ํํฉ ๋ถ์ (2์ฅ)**
|
538 |
+
- ์ฌ๋ผ์ด๋ 4: ์ฐ์
๋ณ ๋์งํธํ ํํฉ
|
539 |
+
- ์ฌ๋ผ์ด๋ 5: ์ฃผ์ ๋์ ๊ณผ์
|
540 |
+
|
541 |
+
**์น์
2: ํต์ฌ ์ ๋ต (3์ฅ)**
|
542 |
+
- ์ฌ๋ผ์ด๋ 6: ๋์งํธ ํธ๋์คํฌ๋ฉ์ด์
ํ๋ ์์ํฌ
|
543 |
+
- ์ฌ๋ผ์ด๋ 7: ๊ธฐ์ ์คํ ๋ฐ ์ธํ๋ผ
|
544 |
+
- ์ฌ๋ผ์ด๋ 8: ๋ณํ ๊ด๋ฆฌ ์ ๋ต
|
545 |
+
|
546 |
+
**์น์
3: ์ฑ๊ณต ์ฌ๋ก (2์ฅ)**
|
547 |
+
- ์ฌ๋ผ์ด๋ 9: ๊ธ๋ก๋ฒ ์ฑ๊ณต ์ฌ๋ก
|
548 |
+
- ์ฌ๋ผ์ด๋ 10: ROI ๋ฐ ์ฑ๊ณผ ์งํ
|
549 |
+
|
550 |
+
### ๊ฒฐ๋ก ๋ถ (2์ฅ)
|
551 |
+
- ์ฌ๋ผ์ด๋ 11: ํต์ฌ ์์ฌ์ ๋ฐ ๊ถ๊ณ ์ฌํญ
|
552 |
+
- ์ฌ๋ผ์ด๋ 12: Q&A
|
553 |
+
|
554 |
+
## 3. ๋น์ฃผ์ผ ์ ๋ต
|
555 |
+
- ์์: ๊ธฐ์
๋ธ๋ฃจ(#003366) + ์
์ผํธ ์ค๋ ์ง(#FF6B35)
|
556 |
+
- ์์ด์ฝ: ๋ชจ๋ํ๊ณ ํ๋ซํ ๋์์ธ
|
557 |
+
- ์ฐจํธ: ๋ฐ์ดํฐ ์๊ฐํ ์ค์ฌ
|
558 |
+
|
559 |
+
[๊ฒ์ ํค์๋]: digital transformation trends 2024, DX success cases, digital transformation ROI, change management digital, industry 4.0 statistics""",
|
560 |
+
|
561 |
+
"researcher": """PPT ์ฝํ
์ธ ๋ฅผ ์ํ ํต์ฌ ์ ๋ณด๋ฅผ ์ ๋ฆฌํ์ต๋๋ค.
|
562 |
+
|
563 |
+
## 1. ์๊ฐ์ ์๋ฃ ๊ฐ๋ฅํ ํต๊ณ/์์น (์ ๋ขฐ๋ ๋์)
|
564 |
+
|
565 |
+
**๋์งํธ ํธ๋์คํฌ๋ฉ์ด์
ํฌ์ ํํฉ**
|
566 |
+
- 2024๋
๊ธ๋ก๋ฒ DX ํฌ์ ๊ท๋ชจ: $3.4์กฐ (์ ๋ขฐ๋: 0.92)
|
567 |
+
- ์ฐํ๊ท ์ฑ์ฅ๋ฅ (CAGR): 16.5% (2023-2027)
|
568 |
+
- ์ถ์ฒ: IDC Digital Transformation Spending Guide
|
569 |
+
|
570 |
+
**์ฐ์
๋ณ ๋์งํธํ ์์ค**
|
571 |
+
- ๊ธ์ต: 78% ๋์งํธํ ์๋ฃ (์ ๋ขฐ๋: 0.88)
|
572 |
+
- ์ ์กฐ: 52% ์งํ ์ค (์ ๋ขฐ๋: 0.85)
|
573 |
+
- ํฌ์ค์ผ์ด: 61% ๊ฐ์ํ ๋จ๊ณ
|
574 |
+
- ์ถ์ฒ: McKinsey Global Institute
|
575 |
+
|
576 |
+
## 2. ํต์ฌ ์ธ์ฌ์ดํธ์ ํธ๋ ๋ (์ ๋ขฐ๋ ๋์)
|
577 |
+
|
578 |
+
**2024๋
์ฃผ์ ํธ๋ ๋**
|
579 |
+
1. AI/ML ํตํฉ: 87%์ ๊ธฐ์
์ด AI๋ฅผ DX ํต์ฌ ์์๋ก ์ฑํ (์ ๋ขฐ๋: 0.90)
|
580 |
+
2. ํด๋ผ์ฐ๋ ์ฐ์ : 94%๊ฐ ํ์ด๋ธ๋ฆฌ๋ ํด๋ผ์ฐ๋ ์ ๋ต ์ถ์ง
|
581 |
+
3. ๋ฐ์ดํฐ ์ค์ฌ: ์ค์๊ฐ ๋ถ์์ด ๊ฒฝ์๋ ฅ์ ํต์ฌ
|
582 |
+
- ์ถ์ฒ: Gartner Technology Trends 2024
|
583 |
+
|
584 |
+
## 3. ์ฌ๋ก ์ฐ๊ตฌ ๋ฐ ์ฑ๊ณต ์คํ ๋ฆฌ (์ ๋ขฐ๋ ๋์)
|
585 |
+
|
586 |
+
**Amazon ์ฌ๋ก**
|
587 |
+
- ๋ฌผ๋ฅ ์๋ํ๋ก ๋ฐฐ์ก ์๊ฐ 40% ๋จ์ถ (์ ๋ขฐ๋: 0.87)
|
588 |
+
- AI ๊ธฐ๋ฐ ์ถ์ฒ์ผ๋ก ๋งค์ถ 35% ์ฆ๊ฐ
|
589 |
+
- ์ถ์ฒ: Amazon Annual Report 2023
|
590 |
+
|
591 |
+
**Starbucks ๋์งํธ ํ์ **
|
592 |
+
- ๋ชจ๋ฐ์ผ ์ฃผ๋ฌธ ๋น์ค: ์ ์ฒด ๋งค์ถ์ 26% (์ ๋ขฐ๋: 0.85)
|
593 |
+
- ๊ฐ์ธํ ๋ง์ผํ
์ผ๋ก ๊ณ ๊ฐ ์ถฉ์ฑ๋ 23% ํฅ์
|
594 |
+
- ์ถ์ฒ: Starbucks Investor Relations
|
595 |
+
|
596 |
+
## 4. ์ ๋ฌธ๊ฐ ์๊ฒฌ ๋ฐ ์ธ์ฉ๊ตฌ
|
597 |
+
|
598 |
+
> "๋์งํธ ํธ๋์คํฌ๋ฉ์ด์
์ ๊ธฐ์ ์ด ์๋ ์ฌ๋๊ณผ ๋ฌธํ์ ๋ณํ๋ค"
|
599 |
+
- Satya Nadella, Microsoft CEO
|
600 |
+
|
601 |
+
> "2025๋
๊น์ง ๋์งํธ ๋ฆฌ๋์ ํ๋ฐ์ฃผ์์ ๊ฒฉ์ฐจ๋ 2๋ฐฐ ์ด์ ๋ฒ์ด์ง ๊ฒ"
|
602 |
+
- Michael Porter, Harvard Business School
|
603 |
+
|
604 |
+
## 5. ์๊ฐ ์๋ฃ ์ถ์ฒ
|
605 |
+
|
606 |
+
**์ฌ๋ผ์ด๋๋ณ ๋น์ฃผ์ผ ์ ์**
|
607 |
+
- ํ์ง: ๋คํธ์ํฌ ์ฐ๊ฒฐ ์ด๋ฏธ์ง + ๋์ ์ธ ๋ฐ์ดํฐ ํ๋ฆ
|
608 |
+
- ํต๊ณ: ์ธํฐ๋ํฐ๋ธํ ๋์๋ณด๋ ์คํ์ผ ์ฐจํธ
|
609 |
+
- ํ๋ ์์ํฌ: ๊ณ์ธต์ ๋ค์ด์ด๊ทธ๋จ + ์์ด์ฝ
|
610 |
+
- ์ฌ๋ก: ๊ธฐ์
๋ก๊ณ + ํต์ฌ ์งํ ์ธํฌ๊ทธ๋ํฝ
|
611 |
+
- ํ์๋ผ์ธ: ๋ก๋๋งต ํํ์ ๋จ๊ณ๋ณ ์งํ๋
|
612 |
+
|
613 |
+
**์์ด์ฝ ์ธํธ**
|
614 |
+
- ๊ธฐ์ : ํด๋ผ์ฐ๋, AI, ๋ฐ์ดํฐ, ๋ณด์
|
615 |
+
- ๋น์ฆ๋์ค: ์ฑ์ฅ, ํ์ , ํ์
, ํจ์จ์ฑ
|
616 |
+
- ์ฌ๋: ๋ฆฌ๋์ญ, ํ์ํฌ, ์คํฌ, ๋ฌธํ""",
|
617 |
+
|
618 |
+
"supervisor_execution": """์กฐ์ฌ ๋ด์ฉ์ ๋ฐํ์ผ๋ก PPT ์ ์์ ์ํ ๊ตฌ์ฒด์ ์ธ ์ง์์ฌํญ์
๋๋ค.
|
619 |
+
|
620 |
+
## 1. ์ฌ๋ผ์ด๋๋ณ ์์ธ ๊ตฌ์ฑ
|
621 |
+
|
622 |
+
**์ฌ๋ผ์ด๋ 1: ํ์ง**
|
623 |
+
- ์ ๋ชฉ: "๋์งํธ ํธ๋์คํฌ๋ฉ์ด์
: ๋ฏธ๋๋ฅผ ํฅํ ๋์ฝ"
|
624 |
+
- ๋ถ์ ๋ชฉ: "์ฑ๊ณต์ ์ธ DX ์ ๋ต๊ณผ ์คํ ๋ฐฉ์"
|
625 |
+
- ๋น์ฃผ์ผ: ์ฐ๊ฒฐ๋ ๋์งํธ ๋คํธ์ํฌ ๋ฐฐ๊ฒฝ
|
626 |
+
- ์กฐ์ฌ ์๋ฃ ํ์ฉ: $3.4์กฐ ์์ฅ ๊ท๋ชจ ๊ฐ์กฐ
|
627 |
+
|
628 |
+
**์ฌ๋ผ์ด๋ 4: ์ฐ์
๋ณ ํํฉ**
|
629 |
+
- ์กฐ์ฌ๋ ํต๊ณ ํ์ฉ: ๊ธ์ต(78%), ์ ์กฐ(52%), ํฌ์ค์ผ์ด(61%)
|
630 |
+
- ์ํ ์ฐจํธ + ์งํ ๋ฐ ์กฐํฉ
|
631 |
+
- ๊ฐ ์ฐ์
๋ณ ๋ํ ์์ด์ฝ ๋ฐฐ์น
|
632 |
+
|
633 |
+
**์ฌ๋ผ์ด๋ 7: ๊ธฐ์ ์คํ**
|
634 |
+
- AI/ML(87% ์ฑํ๋ฅ ) ์ค์ฌ์ผ๋ก ๊ตฌ์ฑ
|
635 |
+
- ํด๋ผ์ฐ๏ฟฝ๏ฟฝ(94%) ํ์ด๋ธ๋ฆฌ๋ ์ ๋ต ์๊ฐํ
|
636 |
+
- ๊ณ์ธต์ ๋ค์ด์ด๊ทธ๋จ ์ฌ์ฉ
|
637 |
+
|
638 |
+
**์ฌ๋ผ์ด๋ 9: ์ฑ๊ณต ์ฌ๋ก**
|
639 |
+
- Amazon๊ณผ Starbucks ์ฌ๋ก ๋๋น
|
640 |
+
- ํต์ฌ ์ฑ๊ณผ ์งํ ์ธํฌ๊ทธ๋ํฝ
|
641 |
+
- Before/After ๋น๊ต ํ์
|
642 |
+
|
643 |
+
## 2. ๋์์ธ ๊ฐ์ด๋๋ผ์ธ
|
644 |
+
|
645 |
+
**์์ ํ๋ ํธ**
|
646 |
+
- ์ฃผ์์: ๋ค์ด๋น ๋ธ๋ฃจ (#1E3A8A)
|
647 |
+
- ๋ณด์กฐ์์: ์ค์นด์ด ๋ธ๋ฃจ (#3B82F6)
|
648 |
+
- ๊ฐ์กฐ์์: ์ค๋ ์ง (#F59E0B)
|
649 |
+
- ๋ฐฐ๊ฒฝ: ํ์ดํธ/๋ผ์ดํธ ๊ทธ๋ ์ด
|
650 |
+
|
651 |
+
**ํ์ดํฌ๊ทธ๋ํผ**
|
652 |
+
- ์ ๋ชฉ: Montserrat Bold (32-40pt)
|
653 |
+
- ๋ณธ๋ฌธ: Open Sans Regular (18-24pt)
|
654 |
+
- ๊ฐ์กฐ: Open Sans Semi-Bold
|
655 |
+
|
656 |
+
**๋ ์ด์์ ์์น**
|
657 |
+
- ์ฌ๋ฐฑ ์ถฉ๋ถํ ํ์ฉ (40% ์ด์)
|
658 |
+
- ์ข์ฐ ๋์นญ ๋๋ ํฉ๊ธ๋น์จ
|
659 |
+
- ํ ์ฌ๋ผ์ด๋ ํ ๋ฉ์์ง ์์น
|
660 |
+
|
661 |
+
## 3. ์คํ ๋ฆฌํ
๋ง ์ ๋ต
|
662 |
+
|
663 |
+
**๋์
๋ถ ์ ๋ต**
|
664 |
+
- ์ถฉ๊ฒฉ์ ์ธ ํต๊ณ๋ก ์์ ($3.4์กฐ ์์ฅ)
|
665 |
+
- "์ ์ง๊ธ์ธ๊ฐ?" ์ง๋ฌธ ์ ๊ธฐ
|
666 |
+
- ์ฒญ์ค์ pain point ๊ณต๊ฐ
|
667 |
+
|
668 |
+
**์ ๊ฐ ๋ฐฉ์**
|
669 |
+
- ๋ฌธ์ โ ํด๊ฒฐ์ฑ
โ ์ฆ๊ฑฐ โ ํ๋
|
670 |
+
- ๊ฐ ์น์
๊ฐ ์์ฐ์ค๋ฌ์ด ์ ํ
|
671 |
+
- ์ฌ๋ก๋ฅผ ํตํ ๊ตฌ์ฒดํ
|
672 |
+
|
673 |
+
**ํด๋ผ์ด๋งฅ์ค**
|
674 |
+
- ROI ๋ฐ์ดํฐ๋ก ์ค๋๋ ฅ ๊ทน๋ํ
|
675 |
+
- ์ฑ๊ณต ๊ธฐ์
๊ณผ์ ๊ฒฉ์ฐจ ์๊ฐํ
|
676 |
+
- ํ๋ ์ด๊ตฌ ๋ฉ์์ง
|
677 |
+
|
678 |
+
## 4. ์๊ฐํ ์ง์นจ
|
679 |
+
|
680 |
+
**๋ฐ์ดํฐ ์๊ฐํ**
|
681 |
+
- ์ฐ์
๋ณ ํํฉ: ๋ฐฉ์ฌํ ์ฐจํธ
|
682 |
+
- ์ฑ์ฅ๋ฅ : ์์น ๊ณก์ ๊ทธ๋ํ
|
683 |
+
- ROI: ๊ณ์ฐ๊ธฐ ์คํ์ผ ์ธํฌ๊ทธ๋ํฝ
|
684 |
+
- ํ๋ก์ธ์ค: ์ํํ ๋ค์ด์ด๊ทธ๋จ
|
685 |
+
|
686 |
+
**์ ๋๋ฉ์ด์
ํจ๊ณผ**
|
687 |
+
- ์ฌ๋ผ์ด๋ ์ ํ: Morph ํจ๊ณผ
|
688 |
+
- ์ฐจํธ ๋ฑ์ฅ: ์์ฐจ์ ๋น๋์
|
689 |
+
- ๊ฐ์กฐ ํฌ์ธํธ: ์ค์ธ/ํ์ด๋ผ์ดํธ
|
690 |
+
- ๊ณผ๋ํ ํจ๊ณผ ์ง์""",
|
691 |
+
|
692 |
+
"executor": """PPT ์ฌ๋ผ์ด๋๋ฅผ ์์ฑํฉ๋๋ค.
|
693 |
+
|
694 |
+
[์ฌ๋ผ์ด๋ 1] ํ์ง
|
695 |
+
์ ๋ชฉ: ๋์งํธ ํธ๋์คํฌ๋ฉ์ด์
: ๋ฏธ๋๋ฅผ ํฅํ ๋์ฝ
|
696 |
+
๋ถ์ ๋ชฉ: ์ฑ๊ณต์ ์ธ DX ์ ๋ต๊ณผ ์คํ ๋ฐฉ์
|
697 |
+
ํต์ฌ ๋ด์ฉ:
|
698 |
+
- ๋ฐํ์: [์ด๋ฆ]
|
699 |
+
- ๋ ์ง: 2024๋
3์
|
700 |
+
- ๊ธฐ์
๋ช
/๋ก๊ณ
|
701 |
+
๋ฐํ์ ๋
ธํธ: ์ฒญ์ค์ ์ฃผ๋ชฉ์ ๋ ์ ์๋๋ก ์์ ๊ฐ ์๊ฒ ์์. $3.4์กฐ ๊ท๋ชจ์ ๊ฑฐ๋ํ ๋ณํ์ ๋ฌผ๊ฒฐ์์ ๊ฐ์กฐ
|
702 |
+
์๊ฐ ์๋ฃ: ๋์งํธ ๋คํธ์ํฌ๊ฐ ์ฐ๊ฒฐ๋ ์ง๊ตฌ๋ณธ ์ด๋ฏธ์ง, ๋์ ์ธ ๋ฐ์ดํฐ ํ๋ฆ ํจ๊ณผ
|
703 |
+
|
704 |
+
[์ฌ๋ผ์ด๋ 2] ๋ชฉ์ฐจ
|
705 |
+
์ ๋ชฉ: Agenda
|
706 |
+
ํต์ฌ ๋ด์ฉ:
|
707 |
+
- ๋์งํธ ํธ๋์คํฌ๋ฉ์ด์
์ ํ์ฌ
|
708 |
+
- ์ฐ์
๋ณ ๋์งํธํ ํํฉ๊ณผ ๊ณผ์
|
709 |
+
- ์ฑ๊ณต์ ์ํ ํต์ฌ ์ ๋ต
|
710 |
+
- ๊ธ๋ก๋ฒ ์ฑ๊ณต ์ฌ๋ก์ ๊ตํ
|
711 |
+
- ๊ฒฐ๋ก ๋ฐ ๋ค์ ๋จ๊ณ
|
712 |
+
๋ฐํ์ ๋
ธํธ: ์ ์ฒด 20๋ถ ๋ฐํ ์ค ๊ฐ ์น์
๋ณ ์๊ฐ ๋ฐฐ๋ถ ์ค๋ช
|
713 |
+
์๊ฐ ์๋ฃ: ๋ฒํธ๊ฐ ๋งค๊ฒจ์ง ์์ด์ฝ๊ณผ ์งํ ํ์ ๋ฐ
|
714 |
+
|
715 |
+
[์ฌ๋ผ์ด๋ 3] ๋์
|
716 |
+
์ ๋ชฉ: ์ ์ง๊ธ ๋์งํธ ํธ๋์คํฌ๋ฉ์ด์
์ธ๊ฐ?
|
717 |
+
ํต์ฌ ๋ด์ฉ:
|
718 |
+
- 2024๋
๊ธ๋ก๋ฒ DX ํฌ์: $3.4์กฐ
|
719 |
+
- ๋์งํธ ๋ฆฌ๋ ๊ธฐ์
์ ์์ต์ฑ: ํ๊ท ๋๋น 2.5๋ฐฐ
|
720 |
+
- ํฌ๋ฐ๋ฏน ์ดํ ๋์งํธ ์ฑํ ๊ฐ์ํ: 10๋
โ2๋
|
721 |
+
- "๋ณํํ๊ฑฐ๋ ๋ํ๋๊ฑฐ๋" - ์์กด์ ๋ฌธ์
|
722 |
+
๋ฐํ์ ๋
ธํธ: ์์ฅ ๊ท๋ชจ์ ๊ธด๊ธ์ฑ์ ๊ฐ์กฐํ์ฌ ์ฒญ์ค์ ๊ด์ฌ ์ ๋
|
723 |
+
์๊ฐ ์๋ฃ: ๊ธ์์นํ๋ ๊ทธ๋ํ์ ์๊ณ ์์ด์ฝ์ผ๋ก ์๊ธํจ ํํ
|
724 |
+
|
725 |
+
[์ฌ๋ผ์ด๋ 4] ์ฐ์
๋ณ ํํฉ
|
726 |
+
์ ๋ชฉ: ์ฐ์
๋ณ ๋์งํธ ํธ๋์คํฌ๋ฉ์ด์
ํํฉ
|
727 |
+
ํต์ฌ ๋ด์ฉ:
|
728 |
+
- ๊ธ์ต: 78% (์ ๋ ๊ทธ๋ฃน)
|
729 |
+
- ํฌ์ค์ผ์ด: 61% (๋น ๋ฅธ ์ถ๊ฒฉ)
|
730 |
+
- ์ ์กฐ: 52% (๊พธ์คํ ์งํ)
|
731 |
+
- ์๋งค: 45% (๊ฐ์ํ ํ์)
|
732 |
+
๋ฐํ์ ๋
ธํธ: ๊ฐ ์ฐ์
์ ํน์ฑ๊ณผ ๋์ ๊ณผ์ ๊ฐ๋จํ ์ธ๊ธ
|
733 |
+
์๊ฐ ์๋ฃ: ๋๋ ์ฐจํธ์ ์ฐ์
๋ณ ์์ด์ฝ, ์งํ๋ฅ ๋ฐ
|
734 |
+
|
735 |
+
[์ฌ๋ผ์ด๋ 5] ์ฃผ์ ๋์ ๊ณผ์
|
736 |
+
์ ๋ชฉ: ๋์งํธ ํธ๋์คํฌ๋ฉ์ด์
์ 5๋ ์ฅ๋ฒฝ
|
737 |
+
ํต์ฌ ๋ด์ฉ:
|
738 |
+
- ๋ ๊ฑฐ์ ์์คํ
์ ๋ณต์ก์ฑ (67%)
|
739 |
+
- ๋ณํ ์ ํญ๊ณผ ๋ฌธํ์ ๊ด์ฑ (54%)
|
740 |
+
- ๋์งํธ ์ธ์ฌ ๋ถ์กฑ (48%)
|
741 |
+
- ๋ถ๋ช
ํํ ROI (41%)
|
742 |
+
- ์ฌ์ด๋ฒ ๋ณด์ ์ฐ๋ ค (38%)
|
743 |
+
๋ฐํ์ ๋
ธํธ: ๊ฐ ์ฅ๋ฒฝ์ ๋ํ ๊ทน๋ณต ๋ฐฉ์ ๋ฏธ๋ฆฌ ์ค๋น
|
744 |
+
์๊ฐ ์๋ฃ: ์ฅ๋ฒฝ์ ๋ํ๋ด๋ ๋ฒฝ๋ ์์ด์ฝ๊ณผ ๋ฐฑ๋ถ์จ ํ์
|
745 |
+
|
746 |
+
[์ฌ๋ผ์ด๋ 6] DX ํ๋ ์์ํฌ
|
747 |
+
์ ๋ชฉ: ๋์งํธ ํธ๋์คํฌ๋ฉ์ด์
์ฑ๊ณต ํ๋ ์์ํฌ
|
748 |
+
ํต์ฌ ๋ด์ฉ:
|
749 |
+
- ์ ๋ต: ๋น์ฆ๋์ค ๋ชฉํ ์ ๋ ฌ
|
750 |
+
- ๊ธฐ์ : AI/ํด๋ผ์ฐ๋/๋ฐ์ดํฐ
|
751 |
+
- ํ๋ก์ธ์ค: ์ ์์ผ ๋ฐฉ๋ฒ๋ก
|
752 |
+
- ๋ฌธํ: ํ์ ๊ณผ ์คํ ์ฅ๋ ค
|
753 |
+
- ๊ฑฐ๋ฒ๋์ค: ์ง์์ ๊ฐ์
|
754 |
+
๋ฐํ์ ๋
ธํธ: ๊ฐ ์์๊ฐ ์ํธ ์ฐ๊ฒฐ๋์ด ์์์ ๊ฐ์กฐ
|
755 |
+
์๊ฐ ์๋ฃ: 5๊ฐํ ๋ค์ด์ด๊ทธ๋จ, ๊ฐ ๊ผญ์ง์ ์ ์์ด์ฝ ๋ฐฐ์น
|
756 |
+
|
757 |
+
[์ฌ๋ผ์ด๋ 7] ๊ธฐ์ ์คํ
|
758 |
+
์ ๋ชฉ: 2024 ํต์ฌ ๊ธฐ์ ์คํ
|
759 |
+
ํต์ฌ ๋ด์ฉ:
|
760 |
+
- AI/ML ์ฑํ๋ฅ : 87%
|
761 |
+
- ํด๋ผ์ฐ๋ ์ ๋ต: 94% ํ์ด๋ธ๋ฆฌ๋
|
762 |
+
- ๋ฐ์ดํฐ ๋ถ์: ์ค์๊ฐ ์ฒ๋ฆฌ
|
763 |
+
- ๋ณด์: Zero Trust ์ํคํ
์ฒ
|
764 |
+
- ํตํฉ: API ์ฐ์ ์ ๊ทผ
|
765 |
+
๋ฐํ์ ๋
ธํธ: ๊ฐ ๊ธฐ์ ์ ๋น์ฆ๋์ค ๊ฐ์น ์ฐ๊ฒฐ
|
766 |
+
์๊ฐ ์๋ฃ: ๊ณ์ธต์ ๊ธฐ์ ์คํ ๋ค์ด์ด๊ทธ๋จ
|
767 |
+
|
768 |
+
[์ฌ๋ผ์ด๋ 8] ๋ณํ ๊ด๋ฆฌ
|
769 |
+
์ ๋ชฉ: ์ฌ๋ ์ค์ฌ์ ๋ณํ ๊ด๋ฆฌ
|
770 |
+
ํต์ฌ ๋ด์ฉ:
|
771 |
+
- ๋ฆฌ๋์ญ์ ๋ช
ํํ ๋น์ ๊ณต์
|
772 |
+
- ๋จ๊ณ๋ณ ๊ต์ก ํ๋ก๊ทธ๋จ
|
773 |
+
- ๋น ๋ฅธ ์ฑ๊ณผ๋ก ๋ชจ๋ฉํ
๊ตฌ์ถ
|
774 |
+
- ์ง์์ ์ปค๋ฎค๋์ผ์ด์
|
775 |
+
- ๋ณด์ ์ฒด๊ณ ์ฐ๊ณ
|
776 |
+
๋ฐํ์ ๋
ธํธ: Satya Nadella ์ธ์ฉ๊ตฌ ํ์ฉ
|
777 |
+
์๊ฐ ์๋ฃ: ๋ณํ ๊ณก์ ๊ณผ ์ฌ๋ ์์ด์ฝ
|
778 |
+
|
779 |
+
[์ฌ๋ผ์ด๋ 9] ์ฑ๊ณต ์ฌ๋ก
|
780 |
+
์ ๋ชฉ: ๊ธ๋ก๋ฒ DX ์ฑ๊ณต ์คํ ๋ฆฌ
|
781 |
+
ํต์ฌ ๋ด์ฉ:
|
782 |
+
- Amazon: ๋ฌผ๋ฅ ์๋ํ โ ๋ฐฐ์ก 40% ๋จ์ถ
|
783 |
+
- Starbucks: ๋ชจ๋ฐ์ผ ์ฃผ๋ฌธ โ ๋งค์ถ 26%
|
784 |
+
- Netflix: AI ์ถ์ฒ โ ์์ฒญ ์๊ฐ 80% ์ฆ๊ฐ
|
785 |
+
- Tesla: OTA ์
๋ฐ์ดํธ โ ์๋น์ค ๋น์ฉ 70% ์ ๊ฐ
|
786 |
+
๋ฐํ์ ๋
ธํธ: ๊ฐ ์ฌ๋ก์ ํต์ฌ ์ฑ๊ณต ์์ธ ๊ฐ์กฐ
|
787 |
+
์๊ฐ ์๋ฃ: ๊ธฐ์
๋ก๊ณ ์ ํต์ฌ ์งํ ์ธํฌ๊ทธ๋ํฝ
|
788 |
+
|
789 |
+
[์ฌ๋ผ์ด๋ 10] ROI ๋ถ์
|
790 |
+
์ ๋ชฉ: ๋์งํธ ํธ๋์คํฌ๋ฉ์ด์
์ ๋ช
ํํ ROI
|
791 |
+
ํต์ฌ ๋ด์ฉ:
|
792 |
+
- ์ด์ ํจ์จ์ฑ: 30-40% ๊ฐ์
|
793 |
+
- ๊ณ ๊ฐ ๋ง์กฑ๋: NPS 25% ์์น
|
794 |
+
- ์ ๊ท ์์ต์: ์ ์ฒด ๋งค์ถ์ 15%
|
795 |
+
- ํฌ์ ํ์ ๊ธฐ๊ฐ: ํ๊ท 2.5๋
|
796 |
+
๋ฐํ์ ๋
ธํธ: ๊ตฌ์ฒด์ ์ธ ์์น๋ก ํฌ์ ์ ๋น์ฑ ์
์ฆ
|
797 |
+
์๊ฐ ์๋ฃ: ROI ๊ณ์ฐ๊ธฐ ์คํ์ผ์ ์ธํฌ๊ทธ๋ํฝ
|
798 |
+
|
799 |
+
[์ฌ๋ผ์ด๋ 11] ํต์ฌ ์์ฌ์
|
800 |
+
์ ๋ชฉ: ์ฑ๊ณต์ ์ธ DX๋ฅผ ์ํ 5๊ฐ์ง ์ ์ธ
|
801 |
+
ํต์ฌ ๋ด์ฉ:
|
802 |
+
- ์๊ฒ ์์ํ๋ ํฌ๊ฒ ์๊ฐํ๋ผ
|
803 |
+
- ๊ธฐ์ ๋ณด๋ค ๋ฌธํ ๋ณํ์ ํฌ์ํ๋ผ
|
804 |
+
- ๋ฐ์ดํฐ ๊ธฐ๋ฐ ์์ฌ๊ฒฐ์ ์ ์ผ์ํํ๋ผ
|
805 |
+
- ์คํจ๋ฅผ ๋๋ ค์ํ์ง ๋ง๊ณ ๋น ๋ฅด๊ฒ ๋ฐฐ์๋ผ
|
806 |
+
- ๊ณ ๊ฐ ์ค์ฌ์ผ๋ก ๋ชจ๋ ๊ฒ์ ์ฌ์ค๊ณํ๋ผ
|
807 |
+
๋ฐํ์ ๋
ธํธ: ๊ฐ ์ ์ธ์ ๋ํ ์ค์ฒ ๋ฐฉ์ ์ค๋น
|
808 |
+
์๊ฐ ์๋ฃ: ์ฒดํฌ๋ฆฌ์คํธ ์คํ์ผ์ ์์ด์ฝ
|
809 |
+
|
810 |
+
[์ฌ๋ผ์ด๋ 12] Q&A
|
811 |
+
์ ๋ชฉ: Questions & Discussion
|
812 |
+
ํต์ฌ ๋ด์ฉ:
|
813 |
+
- ๊ฐ์ฌํฉ๋๋ค
|
814 |
+
- ์ง๋ฌธ๊ณผ ํ ๋ก ํ์
|
815 |
+
- ์ฐ๋ฝ์ฒ: [์ด๋ฉ์ผ/์ ํ]
|
816 |
+
- ์ถ๊ฐ ์๋ฃ: [์น์ฌ์ดํธ/QR์ฝ๋]
|
817 |
+
๋ฐํ์ ๋
ธํธ: ์์ ์ง๋ฌธ 3-5๊ฐ ๋ฏธ๋ฆฌ ์ค๋น
|
818 |
+
์๊ฐ ์๋ฃ: ๋ฌผ์ํ ์์ด์ฝ๊ณผ ์ฐ๋ฝ์ฒ ์ ๋ณด""",
|
819 |
+
|
820 |
+
"supervisor_review": """์คํ์ AI์ PPT ์ด์์ ๊ฒํ ํ์ต๋๋ค. ์ ๋ฐ์ ์ผ๋ก ์ ๊ตฌ์ฑ๋์์ผ๋ ๋ค์ ๊ฐ์ ์ฌํญ์ ์ ์ํฉ๋๋ค.
|
821 |
+
|
822 |
+
## ๊ฐ์
|
823 |
+
- ์กฐ์ฌ๋ ํต๊ณ์ ์์น๊ฐ ํจ๊ณผ์ ์ผ๋ก ํ์ฉ๋จ
|
824 |
+
- ์คํ ๋ฆฌ๋ผ์ธ์ด ๋
ผ๋ฆฌ์ ์ด๊ณ ์ค๋๋ ฅ ์์
|
825 |
+
- ๊ฐ ์ฌ๋ผ์ด๋์ ํต์ฌ ๋ฉ์์ง๊ฐ ๋ช
ํํจ
|
826 |
+
- ์๊ฐ ์๋ฃ ์ ์์ด ๊ตฌ์ฒด์ ์
|
827 |
+
|
828 |
+
## ๊ฐ์ ํ์์ฌํญ
|
829 |
+
|
830 |
+
### 1. ์ํฉํธ ๊ฐํ
|
831 |
+
**์ฌ๋ผ์ด๋ 3 ๊ฐ์ **
|
832 |
+
- ํ์ฌ: ํต๊ณ ๋์ด
|
833 |
+
- ๊ฐ์ : "๊ท์ฌ๋ ๋์งํธ ๋ฆฌ๋์
๋๊น, ํ๋ฐ์ฃผ์์
๋๊น?"๋ผ๋ ๋๋ฐ์ ์ง๋ฌธ ์ถ๊ฐ
|
834 |
+
- ์ฒญ์ค ์ฐธ์ฌ๋ฅผ ์ํ ์ธํฐ๋ํฐ๋ธ ์์ ๊ณ ๋ ค
|
835 |
+
|
836 |
+
**์ฌ๋ผ์ด๋ 5 ๊ฐ์ **
|
837 |
+
- ํ์ฌ: ์ฅ๋ฒฝ๋ง ์ ์
|
838 |
+
- ๊ฐ์ : ๊ฐ ์ฅ๋ฒฝ๋ณ "Quick Win" ์๋ฃจ์
ํ ์ค ์ถ๊ฐ
|
839 |
+
- ํฌ๋ง์ ๋ฉ์์ง๋ก ๊ท ํ ๋ง์ถ๊ธฐ
|
840 |
+
|
841 |
+
### 2. ์คํ ๋ฆฌํ
๋ง ๊ฐํ
|
842 |
+
**์ ํ ๋ฌธ๊ตฌ ์ถ๊ฐ**
|
843 |
+
- ์ฌ๋ผ์ด๋ ๊ฐ ์ฐ๊ฒฐ ๋ฌธ๊ตฌ ํ์
|
844 |
+
- ์: "์ด์ ์ด๋ฌํ ํํฉ์ ์ด๋ป๊ฒ ๊ฐ์ ํ ์ ์์๊น์?"
|
845 |
+
|
846 |
+
**๊ฐ์ ์ ์ฐ๊ฒฐ**
|
847 |
+
- ์ซ์์ ํต๊ณ ์ธ์ ์ธ๊ฐ์ ์คํ ๋ฆฌ ์ถ๊ฐ
|
848 |
+
- ๋ณํ๋ฅผ ๊ฒช์ ์ง์/๊ณ ๊ฐ์ ์ค์ ๊ฒฝํ๋ด
|
849 |
+
|
850 |
+
### 3. ๋น์ฃผ์ผ ์ผ๊ด์ฑ
|
851 |
+
**์์ ์ฌ์ฉ ์ ์ **
|
852 |
+
- ๊ฐ์กฐ์(์ค๋ ์ง) ๊ณผ๋ ์ฌ์ฉ ์์
|
853 |
+
- ๊ฐ ์น์
๋ณ ์์ ํค ๊ตฌ๋ถ
|
854 |
+
- ๋ฐ์ดํฐ ์๊ฐํ ์์ ํ๋ ํธ ํต์ผ
|
855 |
+
|
856 |
+
**์์ด์ฝ ์คํ์ผ**
|
857 |
+
- ๋ชจ๋ ์์ด์ฝ ๋์ผ ์คํ์ผ๋ก ํต์ผ
|
858 |
+
- ๋ผ์ธ ๋๊ป, ๋ชจ์๋ฆฌ ์ฒ๋ฆฌ ์ผ๊ด์ฑ
|
859 |
+
|
860 |
+
### 4. ๋ฐํ ์ค๋น ๊ฐํ
|
861 |
+
**์๊ฐ ๋ฐฐ๋ถ ๋ช
์**
|
862 |
+
- ๊ฐ ์ฌ๋ผ์ด๋๋ณ ์์ ์์ ์๊ฐ ์ถ๊ฐ
|
863 |
+
- ์ ์ฒด 20๋ถ ๊ธฐ์ค ์์ธ ๋ฐฐ๋ถ
|
864 |
+
|
865 |
+
**์ ํ ์คํฌ๋ฆฝํธ**
|
866 |
+
- ์ฌ๋ผ์ด๋ ๊ฐ ์์ฐ์ค๋ฌ์ด ์ ํ ๋ฉํธ ์ค๋น
|
867 |
+
- ์ฒญ์ค ๋ฐ์ ์ฒดํฌ ํฌ์ธํธ ์ค์
|
868 |
+
|
869 |
+
### 5. ์ถ๊ฐ ๊ถ์ฅ์ฌํญ
|
870 |
+
**๋ฐฑ์
์ฌ๋ผ์ด๋ ์ค๋น**
|
871 |
+
- ์์ธ ๊ธฐ์ ์คํ
|
872 |
+
- ์ถ๊ฐ ์ฌ๋ก ์ฐ๊ตฌ
|
873 |
+
- ์
์ข
๋ณ ๋ง์ถค ์ ๋ต
|
874 |
+
- ์์ธ ROI ๊ณ์ฐ ๋ฐฉ๋ฒ
|
875 |
+
|
876 |
+
**์ธ์ ์๋ฃ**
|
877 |
+
- 3์ฌ๋ผ์ด๋/ํ์ด์ง ํ์
|
878 |
+
- ๋ฉ๋ชจ ๊ณต๊ฐ ํฌํจ
|
879 |
+
- ํต์ฌ ์์น ์์ฝ ํ์ด์ง
|
880 |
+
|
881 |
+
์ด๋ฌํ ๊ฐ์ ์ฌํญ์ ๋ฐ์ํ๋ฉด ๋์ฑ ์์ฑ๋ ๋๊ณ ์ค๋๋ ฅ ์๋ PPT๊ฐ ๋ ๊ฒ์
๋๋ค.""",
|
882 |
+
|
883 |
+
"executor_final": """๊ฐ๋
์ AI์ ํผ๋๋ฐฑ์ ์์ ํ ๋ฐ์ํ ์ต์ข
PPT๋ฅผ ์์ฑํฉ๋๋ค.
|
884 |
+
|
885 |
+
# ๐ฏ ๋์งํธ ํธ๋์คํฌ๋ฉ์ด์
: ๋ฏธ๋๋ฅผ ํฅํ ๋์ฝ
|
886 |
+
## ์ต์ข
์์ฑ PPT (๋ฐํ ์๊ฐ: 20๋ถ)
|
887 |
+
|
888 |
+
---
|
889 |
+
|
890 |
+
[์ฌ๋ผ์ด๋ 1] ํ์ง (30์ด)
|
891 |
+
**์ ๋ชฉ**: ๋์งํธ ํธ๋์คํฌ๋ฉ์ด์
: ๋ฏธ๋๋ฅผ ํฅํ ๋์ฝ
|
892 |
+
**๋ถ์ ๋ชฉ**: ์ฑ๊ณต์ ์ธ DX ์ ๋ต๊ณผ ์คํ ๋ฐฉ์
|
893 |
+
**๋น์ฃผ์ผ**:
|
894 |
+
- ๋ฐฐ๊ฒฝ: ์ฐ๊ฒฐ๋ ๋์งํธ ๋คํธ์ํฌ์ ๋ฐ์ดํฐ ํ๋ฆ
|
895 |
+
- ์ค์: ํ์ฌ ๋ก๊ณ
|
896 |
+
- ํ๋จ: ๋ฐํ์ ์ ๋ณด ๋ฐ ๋ ์ง
|
897 |
+
**๋ฐํ์ ๋
ธํธ**:
|
898 |
+
"์๋
ํ์ญ๋๊น. ์ค๋ ์ฌ๋ฌ๋ถ๊ณผ ํจ๊ป $3.4์กฐ ๊ท๋ชจ์ ๋์งํธ ํ๋ช
, ๊ทธ ์ค์ฌ์์ ์ฐ๋ฆฌ๊ฐ ์ด๋ป๊ฒ ์ฑ๊ณตํ ์ ์์์ง ๋
ผ์ํ๊ณ ์ ํฉ๋๋ค."
|
899 |
+
|
900 |
+
---
|
901 |
+
|
902 |
+
[์ฌ๋ผ์ด๋ 2] ๋ชฉ์ฐจ (30์ด)
|
903 |
+
**์ ๋ชฉ**: ์ค๋์ ์ฌ์
|
904 |
+
**ํต์ฌ ๋ด์ฉ**:
|
905 |
+
1. ๐ ๋์งํธ ํธ๋์คํฌ๋ฉ์ด์
์ ํ์ฌ (3๋ถ)
|
906 |
+
2. ๐ญ ์ฐ์
๋ณ ํํฉ๊ณผ ๋์ ๊ณผ์ (3๋ถ)
|
907 |
+
3. ๐ฏ ์ฑ๊ณต ์ ๋ต๊ณผ ํ๋ ์์ํฌ (5๋ถ)
|
908 |
+
4. ๐ ๊ธ๋ก๋ฒ ์ฑ๊ณต ์ฌ๋ก (4๋ถ)
|
909 |
+
5. ๐ก ํต์ฌ ์์ฌ์ ๊ณผ ์คํ ๋ฐฉ์ (4๋ถ)
|
910 |
+
6. ๐ค Q&A (1๋ถ)
|
911 |
+
**๋ฐํ์ ๋
ธํธ**:
|
912 |
+
"20๋ถ๊ฐ์ ์ฌ์ ์ ํตํด ๋์งํธ ํธ๋์คํฌ๋ฉ์ด์
์ ํ์ฌ์ ๋ฏธ๋, ๊ทธ๋ฆฌ๊ณ ์คํ ๋ฐฉ์์ ํจ๊ป ํ์ํ๊ฒ ์ต๋๋ค."
|
913 |
+
**์๊ฐ ์๋ฃ**: ์งํ ๋จ๊ณ๋ฅผ ๋ณด์ฌ์ฃผ๋ ๋ก๋๋งต ์คํ์ผ ๋์์ธ
|
914 |
+
|
915 |
+
---
|
916 |
+
|
917 |
+
[์ฌ๋ผ์ด๋ 3] ๋์ ์ ์ง๋ฌธ (1๋ถ 30์ด)
|
918 |
+
**์ ๋ชฉ**: ๊ท์ฌ๋ ๋์งํธ ๋ฆฌ๋์
๋๊น, ํ๋ฐ์ฃผ์์
๋๊น?
|
919 |
+
**ํต์ฌ ๋ด์ฉ**:
|
920 |
+
- ๐ 2024๋
๊ธ๋ก๋ฒ DX ์์ฅ: **$3.4์กฐ**
|
921 |
+
- ๐ ๋์งํธ ๋ฆฌ๋์ ์์ต์ฑ: ํ๊ท ๋๋น **2.5๋ฐฐ**
|
922 |
+
- โฐ ๋ณํ์ ์๋: 10๋
โ **2๋
** (ํฌ๋ฐ๋ฏน ๊ฐ์ํ)
|
923 |
+
- โก ํต์ฌ ์ง๋ฌธ: "์ฐ๋ฆฌ๋ ๋ณํ๋ฅผ ์ฃผ๋ํ๊ณ ์๋๊ฐ?"
|
924 |
+
**๋ฐํ์ ๋
ธํธ**:
|
925 |
+
"์ ์ ์๊ฐํด๋ณด์ญ์์ค. ๊ท์ฌ๋ ์ด ๊ฑฐ๋ํ ๋ณํ์ ๋ฌผ๊ฒฐ์ ํ๊ณ ์์ต๋๊น, ์๋๋ฉด ๋ค์ฒ์ ธ ์์ต๋๊น?"
|
926 |
+
**์๊ฐ ์๋ฃ**:
|
927 |
+
- ์๋จ: ๋๋ฐ์ ์ง๋ฌธ ํฌ๊ฒ ํ์
|
928 |
+
- ์ค์: ๋ฆฌ๋ vs ํ๋ฐ์ฃผ์ ๋๋น ์ธํฌ๊ทธ๋ํฝ
|
929 |
+
- ์ ํ: ์ฒญ์ค ์ฐธ์ฌ๋ฅผ ์ํ 3์ด pause
|
930 |
+
|
931 |
+
---
|
932 |
+
|
933 |
+
[์ฌ๋ผ์ด๋ 4] ์ฐ์
๋ณ ๋์งํธํ ํํฉ (1๋ถ 30์ด)
|
934 |
+
**์ ๋ชฉ**: ๋น์ ์ ์ฐ์
์ ์ด๋์ ์์นํฉ๋๊น?
|
935 |
+
**ํต์ฌ ๋ด์ฉ**:
|
936 |
+
- ๐ฆ ๊ธ์ต: 78% - "๋์งํธ์ด ์๋ก์ด ํ์ค"
|
937 |
+
- ๐ฅ ํฌ์ค์ผ์ด: 61% - "์๊ฒฉ์๋ฃ๊ฐ ์ผ์์ผ๋ก"
|
938 |
+
- ๐ญ ์ ์กฐ: 52% - "์ค๋งํธ ํฉํ ๋ฆฌ๋ก ์งํ"
|
939 |
+
- ๐๏ธ ์๋งค: 45% - "์ด๋์ฑ๋์ด ์์กด ์กฐ๊ฑด"
|
940 |
+
**๋ฐํ์ ๋
ธํธ**:
|
941 |
+
"๊ธ์ต์
์ ์ด๋ฏธ 78%๊ฐ ๋์งํธํ๋์์ต๋๋ค. ๊ท์ฌ์ ์ฐ์
์ ์ด๋ป์ต๋๊น? ์ด์ ๊ฐ ์ฐ์
์ ์ฑ๊ณต ๋น๊ฒฐ์ ์ดํด๋ณด๊ฒ ์ต๋๋ค."
|
942 |
+
**์๊ฐ ์๋ฃ**:
|
943 |
+
- ๋ ์ด์ค ํธ๋ ํํ์ ์งํ๋ ํ์
|
944 |
+
- ๊ฐ ์ฐ์
๋ณ ๋ํ ์์ด์ฝ๊ณผ ์งํ๋ฅ
|
945 |
+
- ์
์ข
๋ณ ๋ํ ๊ธฐ์
๋ก๊ณ ์๊ฒ ํ์
|
946 |
+
|
947 |
+
---
|
948 |
+
|
949 |
+
[์ฌ๋ผ์ด๋ 5] 5๋ ์ฅ๋ฒฝ๊ณผ ํด๊ฒฐ์ฑ
(2๋ถ)
|
950 |
+
**์ ๋ชฉ**: ์ฅ๋ฒฝ์ ๊ธฐํ๋ก: 5๋ ๋์ ๊ณผ์ ์ Quick Win
|
951 |
+
**ํต์ฌ ๋ด์ฉ**:
|
952 |
+
- ๐ง ๋ ๊ฑฐ์ ์์คํ
(67%) โ "๋จ๊ณ์ ํ๋ํ ์ ๋ต"
|
953 |
+
- ๐ซ ๋ณํ ์ ํญ (54%) โ "์์ ์ฑ๊ณต ์คํ ๋ฆฌ ํ์ฐ"
|
954 |
+
- ๐ฅ ์ธ์ฌ ๋ถ์กฑ (48%) โ "์
์คํฌ๋ง + ์ธ๋ถ ํํธ๋์ญ"
|
955 |
+
- ๐ฐ ๋ถ๋ช
ํํ ROI (41%) โ "ํ์ผ๋ฟ ํ๋ก์ ํธ๋ก ์ฆ๋ช
"
|
956 |
+
- ๐ ๋ณด์ ์ฐ๋ ค (38%) โ "Security by Design ์์น"
|
957 |
+
**๋ฐํ์ ๋
ธํธ**:
|
958 |
+
"๋ชจ๋ ์ฅ๋ฒฝ์๋ ํด๊ฒฐ์ฑ
์ด ์์ต๋๋ค. ์ค์ํ ๊ฒ์ ์ด๋์๋ถํฐ ์์ํ ๊ฒ์ธ๊ฐ์
๋๋ค."
|
959 |
+
**์ ํ ๋ฉํธ**: "๊ทธ๋ ๋ค๋ฉด ์ด๋ฌํ ์ฅ๋ฒฝ์ ๋์ด ์ฑ๊ณตํ๊ธฐ ์ํ ๊ฒ์ฆ๋ ํ๋ ์์ํฌ๋ฅผ ์๊ฐํ๊ฒ ์ต๋๋ค."
|
960 |
+
**์๊ฐ ์๋ฃ**:
|
961 |
+
- ์ฅ๋ฒฝโํด๊ฒฐ์ฑ
ํ์ดํ ์ ๋๋ฉ์ด์
|
962 |
+
- ๊ฐ ํญ๋ชฉ๋ณ ์์ฐจ์ ๋ฑ์ฅ ํจ๊ณผ
|
963 |
+
|
964 |
+
---
|
965 |
+
|
966 |
+
[์ฌ๋ผ์ด๋ 6] DX ์ฑ๊ณต ํ๋ ์์ํฌ (2๋ถ)
|
967 |
+
**์ ๋ชฉ**: ๊ฒ์ฆ๋ ๋์งํธ ํธ๋์คํฌ๋ฉ์ด์
ํ๋ ์์ํฌ
|
968 |
+
**ํต์ฌ ๋ด์ฉ**:
|
969 |
+
๐ฏ **์ ๋ต**: ๋น์ฆ๋์ค ๋ชฉํ์ 100% ์ ๋ ฌ
|
970 |
+
๐ง **๊ธฐ์ **: AI(87%) + ํด๋ผ์ฐ๋(94%) + ๋ฐ์ดํฐ
|
971 |
+
๐ฅ **๋ฌธํ**: ํ์ DNA ์ฃผ์
|
972 |
+
โ๏ธ **ํ๋ก์ธ์ค**: ์ ์์ผ + DevOps
|
973 |
+
๐ **๊ฑฐ๋ฒ๋์ค**: ์ธก์ ๊ฐ๋ฅํ KPI
|
974 |
+
**๋ฐํ์ ๋
ธํธ**:
|
975 |
+
"์ด 5๊ฐ์ง ์์๋ ํฑ๋๋ฐํด์ฒ๋ผ ๋ง๋ฌผ๋ ค ์์ต๋๋ค. ํ๋๋ผ๋ ๋น ์ง๋ฉด ์ ์ฒด๊ฐ ์๋ํ์ง ์์ต๋๋ค."
|
976 |
+
**์๊ฐ ์๋ฃ**:
|
977 |
+
- ์ค์: 5๊ฐํ ๋ค์ด์ด๊ทธ๋จ
|
978 |
+
- ๊ฐ ์์ ๊ฐ ์ฐ๊ฒฐ์ ์ผ๋ก ์ํธ์์กด์ฑ ํํ
|
979 |
+
- ํธ๋ฒ ํจ๊ณผ๋ก ๊ฐ ์์ ์์ธ ์ค๋ช
|
980 |
+
|
981 |
+
---
|
982 |
+
|
983 |
+
[์ฌ๋ผ์ด๋ 7] 2024 ๊ธฐ์ ์คํ (1๋ถ 30์ด)
|
984 |
+
**์ ๋ชฉ**: ๋ฏธ๋๋ฅผ ๋ง๋๋ ๊ธฐ์ ์คํ
|
985 |
+
**ํต์ฌ ๋ด์ฉ**:
|
986 |
+
**Layer 1 - ์ธํ๋ผ**
|
987 |
+
- โ๏ธ ํ์ด๋ธ๋ฆฌ๋ ํด๋ผ์ฐ๋ (94% ์ฑํ)
|
988 |
+
**Layer 2 - ๋ฐ์ดํฐ**
|
989 |
+
- ๐ ์ค์๊ฐ ๋ถ์ ํ๋ซํผ
|
990 |
+
**Layer 3 - ์ธํ
๋ฆฌ์ ์ค**
|
991 |
+
- ๐ค AI/ML (87% ํตํฉ)
|
992 |
+
**Layer 4 - ๊ฒฝํ**
|
993 |
+
- ๐ฑ ์ด๋์ฑ๋ ์ธํฐํ์ด์ค
|
994 |
+
**Layer 5 - ๋ณด์**
|
995 |
+
- ๐ Zero Trust ์ํคํ
์ฒ
|
996 |
+
**๋ฐํ์ ๋
ธํธ**:
|
997 |
+
"๊ฐ ๋ ์ด์ด๋ ๊ทธ ์์ ๋ ์ด์ด๋ฅผ ์ง์ํฉ๋๋ค. ํํํ ๊ธฐ์ด ์์ด๋ ํ์ ๋ ์์ต๋๋ค."
|
998 |
+
**์๊ฐ ์๋ฃ**:
|
999 |
+
- ํผ๋ผ๋ฏธ๋ ํํ์ ๊ธฐ์ ์คํ
|
1000 |
+
- ๊ฐ ๋ ์ด์ด๋ณ ๋ํ ๊ธฐ์ ๋ก๊ณ
|
1001 |
+
|
1002 |
+
---
|
1003 |
+
|
1004 |
+
[์ฌ๋ผ์ด๋ 8] ์ธ๊ฐ ์ค์ฌ ๋ณํ ๊ด๋ฆฌ (1๋ถ 30์ด)
|
1005 |
+
**์ ๋ชฉ**: ๊ธฐ์ ์ด ์๋ ์ฌ๋์ด ๋ง๋๋ ๋ณํ
|
1006 |
+
**ํต์ฌ ๋ด์ฉ**:
|
1007 |
+
> "๋์งํธ ํธ๋์คํฌ๋ฉ์ด์
์ ๊ธฐ์ ์ด ์๋ ์ฌ๋๊ณผ ๋ฌธํ์ ๋ณํ๋ค"
|
1008 |
+
> - Satya Nadella, Microsoft CEO
|
1009 |
+
|
1010 |
+
- ๐ฏ **๋น์ **: ๋ช
ํํ๊ณ ๊ณ ๋ฌด์ ์ธ ๋ฏธ๋์
|
1011 |
+
- ๐ **๊ต์ก**: ์ง์์ ํ์ต ๋ฌธํ
|
1012 |
+
- ๐ **์ฑ๊ณผ**: ์์ ์น๋ฆฌ์ ์ถ์
|
1013 |
+
- ๐ฌ **์ํต**: ์๋ฐฉํฅ ํผ๋๋ฐฑ ๋ฃจํ
|
1014 |
+
- ๐ **๋ณด์**: ํ์ ์ ๋ํ ์ธ์ผํฐ๋ธ
|
1015 |
+
**๋ฐํ์ ๋
ธํธ**:
|
1016 |
+
"๊ฐ์ฅ ์์ ๊ธฐ์ ๋ ์ฌ๋์ด ๋ฐ์๋ค์ด์ง ์์ผ๋ฉด ๋ฌด์ฉ์ง๋ฌผ์
๋๋ค."
|
1017 |
+
**์ ํ ๋ฉํธ**: "์ด์ ์ด๋ฌํ ์์น๋ค์ด ์ค์ ๋ก ์ด๋ค ์ฑ๊ณผ๋ฅผ ๋ง๋ค์ด๋๋์ง ๋ณด์๊ฒ ์ต๋๋ค."
|
1018 |
+
**์๊ฐ ์๋ฃ**: ์ฌ๋ ์ค์ฌ์ ์ํ ๋ค์ด์ด๊ทธ๋จ
|
1019 |
+
|
1020 |
+
---
|
1021 |
+
|
1022 |
+
[์ฌ๋ผ์ด๋ 9] ๊ธ๋ก๋ฒ ์ฑ๊ณต ์คํ ๋ฆฌ (2๋ถ)
|
1023 |
+
**์ ๋ชฉ**: ์ซ์๋ก ์ฆ๋ช
๋ DX ์ฑ๊ณต ์ฌ๋ก
|
1024 |
+
**ํต์ฌ ๋ด์ฉ**:
|
1025 |
+
๐ฆ **Amazon**: ๋ฌผ๋ฅ ์๋ํ โ ๋ฐฐ์ก ์๊ฐ **40% ๋จ์ถ**
|
1026 |
+
โ **Starbucks**: ๋ชจ๋ฐ์ผ ์ฃผ๋ฌธ โ ๋งค์ถ์ **26% ์ฐจ์ง**
|
1027 |
+
๐ฌ **Netflix**: AI ์ถ์ฒ โ ์์ฒญ ์๊ฐ **80% ์ฆ๊ฐ**
|
1028 |
+
๐ **Tesla**: OTA ์
๋ฐ์ดํธ โ ์๋น์ค ๋น์ฉ **70% ์ ๊ฐ**
|
1029 |
+
|
1030 |
+
**๊ณตํต ์ฑ๊ณต ์์ธ**:
|
1031 |
+
- ๊ณ ๊ฐ ๊ฒฝํ ์ต์ฐ์
|
1032 |
+
- ๋ฐ์ดํฐ ๊ธฐ๋ฐ ์์ฌ๊ฒฐ์
|
1033 |
+
- ์ง์์ ํ์ ๋ฌธํ
|
1034 |
+
**๋ฐํ์ ๋
ธํธ**:
|
1035 |
+
"์ด๋ค์ ๊ณตํต์ ์ ๋ฌด์์ผ๊น์? ๊ธฐ์ ์ ๋ชฉ์ ์ด ์๋ ์๋จ์ผ๋ก ํ์ฉํ๋ค๋ ์ ์
๋๋ค."
|
1036 |
+
**์๊ฐ ์๋ฃ**:
|
1037 |
+
- ๊ฐ ๊ธฐ์
๋ณ Before/After ๋๋น
|
1038 |
+
- ํต์ฌ ์งํ ํฌ๊ฒ ๊ฐ์กฐ
|
1039 |
+
|
1040 |
+
---
|
1041 |
+
|
1042 |
+
[์ฌ๋ผ์ด๋ 10] ROI์ ์ง์ค (2๋ถ)
|
1043 |
+
**์ ๋ชฉ**: ํฌ์ ๋๋น ์์ต, ์จ๊ฒจ์ง ๊ฐ์น๊น์ง
|
1044 |
+
**์ ๋์ ํจ๊ณผ**:
|
1045 |
+
- ๐ฐ ์ด์ ํจ์จ์ฑ: **30-40% ๊ฐ์ **
|
1046 |
+
- ๐ ๊ณ ๊ฐ ๋ง์กฑ๋: NPS **25ํฌ์ธํธ ์์น**
|
1047 |
+
- ๐ ์ ๊ท ์์ต: ์ ์ฒด ๋งค์ถ์ **15% ์ฐฝ์ถ**
|
1048 |
+
- โฑ๏ธ ํฌ์ ํ์: ํ๊ท **2.5๋
**
|
1049 |
+
|
1050 |
+
**์ ์ฑ์ ํจ๊ณผ**:
|
1051 |
+
- ์ง์ ๋ง์กฑ๋ ํฅ์
|
1052 |
+
- ๋ธ๋๋ ์ด๋ฏธ์ง ์ ๊ณ
|
1053 |
+
- ๋ฏธ๋ ๋์๋ ฅ ํ๋ณด
|
1054 |
+
**๋ฐํ์ ๋
ธํธ**:
|
1055 |
+
"ROI๋ ๋จ์ํ ์ซ์๋ก๋ง ์ธก์ ๋์ง ์์ต๋๋ค. ์กฐ์ง์ ๋ฏธ๋ ๊ฒฝ์๋ ฅ์ด ์ง์ ํ ๊ฐ์น์
๋๋ค."
|
1056 |
+
**์๊ฐ ์๋ฃ**:
|
1057 |
+
- ROI ๊ณ์ฐ๊ธฐ ์ธํฐํ์ด์ค
|
1058 |
+
- ์ ๋/์ ์ฑ ํจ๊ณผ ๊ท ํ ํ์
|
1059 |
+
|
1060 |
+
---
|
1061 |
+
|
1062 |
+
[์ฌ๋ผ์ด๋ 11] ์คํ์ ์ํ 5๊ฐ์ง ์ ์ธ (2๋ถ)
|
1063 |
+
**์ ๋ชฉ**: ๋ด์ผ๋ถํฐ ์์ํ ์ ์๋ 5๊ฐ์ง ํ๋
|
1064 |
+
**ํต์ฌ ์ ์ธ**:
|
1065 |
+
1. ๐ฑ **Start Small, Think Big**
|
1066 |
+
- "ํ์ผ๋ฟ ํ๋ก์ ํธ๋ก ์์ํ๋ ์ ์ฌ ํ์ฐ ๊ณํ ์๋ฆฝ"
|
1067 |
+
2. ๐ฅ **Culture First, Technology Second**
|
1068 |
+
- "์ต๊ณ ์ ๊ธฐ์ ๋ ๋ฌธํ๊ฐ ๋ท๋ฐ์นจ๋์ง ์์ผ๋ฉด ์คํจ"
|
1069 |
+
3. ๐ **Data-Driven Everything**
|
1070 |
+
- "์ถ์ธก์ด ์๋ ๋ฐ์ดํฐ๋ก ์์ฌ๊ฒฐ์ "
|
1071 |
+
4. ๐ **Fail Fast, Learn Faster**
|
1072 |
+
- "์คํจ๋ฅผ ๋๋ ค์ํ์ง ๋ง๊ณ ๋น ๋ฅด๊ฒ ํผ๋ฒ"
|
1073 |
+
5. ๐ฏ **Customer at the Center**
|
1074 |
+
- "๋ชจ๋ ๋ณํ์ ์ค์ฌ์ ๊ณ ๊ฐ ๊ฐ์น"
|
1075 |
+
**๋ฐํ์ ๋
ธํธ**:
|
1076 |
+
"์ด ์ค ๋จ ํ๋๋ง์ด๋ผ๋ ๋ด์ผ๋ถํฐ ์ค์ฒํ๋ค๋ฉด, 1๋
ํ ์กฐ์ง์ ์์ ํ ๋ฌ๋ผ์ ธ ์์ ๊ฒ์
๋๋ค."
|
1077 |
+
**์๊ฐ ์๋ฃ**: ์ฒดํฌ๋ฐ์ค ์คํ์ผ, ํ๋์ฉ ์ฒดํฌ๋๋ ์ ๋๋ฉ์ด์
|
1078 |
+
|
1079 |
+
---
|
1080 |
+
|
1081 |
+
[์ฌ๋ผ์ด๋ 12] ๋ง๋ฌด๋ฆฌ ๋ฐ Q&A (1๋ถ)
|
1082 |
+
**์ ๋ชฉ**: ํจ๊ป ๋ง๋๋ ๋์งํธ ๋ฏธ๋
|
1083 |
+
**ํต์ฌ ๋ด์ฉ**:
|
1084 |
+
๐ **๊ฐ์ฌํฉ๋๋ค**
|
1085 |
+
|
1086 |
+
๐ญ **์๊ฐํด๋ณผ ์ง๋ฌธ๋ค**:
|
1087 |
+
- ์ฐ๋ฆฌ ์กฐ์ง์ ๋์งํธ ์ฑ์๋๋?
|
1088 |
+
- ๊ฐ์ฅ ๋จผ์ ํด๊ฒฐํด์ผ ํ ๊ณผ์ ๋?
|
1089 |
+
- ์ฒซ ๋ฒ์งธ ํ์ผ๋ฟ ํ๋ก์ ํธ๋?
|
1090 |
+
|
1091 |
+
๐ง ์ฐ๋ฝ์ฒ: [์ด๋ฉ์ผ]
|
1092 |
+
๐ฑ LinkedIn: [ํ๋กํ]
|
1093 |
+
๐ ์ถ๊ฐ ์๋ฃ: [QR ์ฝ๋]
|
1094 |
+
**๋ฐํ์ ๋
ธํธ**:
|
1095 |
+
"๋์งํธ ํธ๋์คํฌ๋ฉ์ด์
์ ๋ชฉ์ ์ง๊ฐ ์๋ ์ฌ์ ์
๋๋ค. ๊ทธ ์ฌ์ ์ ํจ๊ปํ๊ฒ ๋์ด ์๊ด์
๋๋ค."
|
1096 |
+
**์๊ฐ ์๋ฃ**: QR ์ฝ๋์ ์ฐ๋ฝ์ฒ ์ ๋ณด
|
1097 |
+
|
1098 |
+
---
|
1099 |
+
|
1100 |
+
## ๐ ๋ฐฑ์
์ฌ๋ผ์ด๋ (ํ์์ ํ์ฉ)
|
1101 |
+
|
1102 |
+
[๋ฐฑ์
1] ์ฐ์
๋ณ ์์ธ ์ ๋ต
|
1103 |
+
[๋ฐฑ์
2] ๊ธฐ์ ์คํ ์์ธ ์คํ
|
1104 |
+
[๋ฐฑ์
3] ์ถ๊ฐ ์ฑ๊ณต ์ฌ๋ก (๊ตญ๋ด ๊ธฐ์
)
|
1105 |
+
[๋ฐฑ์
4] ROI ๊ณ์ฐ ๋ฐฉ๋ฒ๋ก
|
1106 |
+
[๋ฐฑ์
5] ๋จ๊ณ๋ณ ์คํ ๋ก๋๋งต
|
1107 |
+
|
1108 |
+
## ๐ค ์์ Q&A ๋ฐ ๋ต๋ณ ์ค๋น
|
1109 |
+
|
1110 |
+
**Q1: ์ฐ๋ฆฌ ๊ฐ์ ์ค๊ฒฌ๊ธฐ์
๋ ๊ฐ๋ฅํ๊ฐ์?**
|
1111 |
+
A: ์คํ๋ ค ์ค๊ฒฌ๊ธฐ์
์ด ๋ ๋น ๋ฅด๊ฒ ๋ณํํ ์ ์์ต๋๋ค. ์์ ํ์ผ๋ฟ๋ถํฐ ์์ํ์ธ์.
|
1112 |
+
|
1113 |
+
**Q2: ์์ฐ์ด ์ ํ์ ์ธ๋ฐ ์ด๋ป๊ฒ ์์ํ๋์?**
|
1114 |
+
A: ํด๋ผ์ฐ๋ ๊ธฐ๋ฐ SaaS๋ฅผ ํ์ฉํ๋ฉด ์ด๊ธฐ ํฌ์๋ฅผ ์ต์ํํ ์ ์์ต๋๋ค.
|
1115 |
+
|
1116 |
+
**Q3: ์ง์๋ค์ ์ ํญ์ด ์ฌํ๋ฐ ์ด๋ป๊ฒ ๊ทน๋ณตํ๋์?**
|
1117 |
+
A: ๋ณํ์ ์ํ์๋ฅผ ๋จผ์ ๋ง๋ค๊ณ , ๊ทธ๋ค์ด ์ ๋์ฌ๊ฐ ๋๊ฒ ํ์ธ์.
|
1118 |
+
|
1119 |
+
---
|
1120 |
+
*์ด PPT๋ 20๋ถ ๋ฐํ๋ฅผ ๊ธฐ์ค์ผ๋ก ์์ฑ๋์์ผ๋ฉฐ, ์ฒญ์ค๊ณผ์ ์ํธ์์ฉ์ ๊ทน๋ํํ๋๋ก ์ค๊ณ๋์์ต๋๋ค.*"""
|
1121 |
+
}
|
1122 |
+
|
1123 |
+
# ํ๋กฌํํธ ๋ด์ฉ์ ๋ฐ๋ผ ์ ์ ํ ์๋ต ์ ํ
|
1124 |
+
if role == "supervisor" and "์กฐ์ฌ์ AI๊ฐ ์ ๋ฆฌํ" in messages[0]["content"]:
|
1125 |
+
response = test_responses["supervisor_execution"]
|
1126 |
+
elif role == "supervisor" and messages[0]["content"].find("์คํ์ AI์ PPT ์ด์") > -1:
|
1127 |
+
response = test_responses["supervisor_review"]
|
1128 |
+
elif role == "supervisor":
|
1129 |
+
response = test_responses["supervisor_initial"]
|
1130 |
+
elif role == "researcher":
|
1131 |
+
response = test_responses["researcher"]
|
1132 |
+
elif role == "executor" and "์ต์ข
PPT" in messages[0]["content"]:
|
1133 |
+
response = test_responses["executor_final"]
|
1134 |
+
else:
|
1135 |
+
response = test_responses["executor"]
|
1136 |
+
|
1137 |
+
yield from self.simulate_streaming(response, role)
|
1138 |
return
|
1139 |
|
1140 |
+
# ์ค์ API ํธ์ถ
|
1141 |
+
try:
|
1142 |
+
system_prompts = {
|
1143 |
+
"supervisor": "๋น์ ์ ์ ๋ฌธ์ ์ธ PPT ๊ตฌ์กฐ๋ฅผ ์ค๊ณํ๊ณ ์ง๋ํ๋ ๊ฐ๋
์ AI์
๋๋ค.",
|
1144 |
+
"researcher": "๋น์ ์ PPT ์ฝํ
์ธ ๋ฅผ ์ํ ์ ๋ณด๋ฅผ ์กฐ์ฌํ๊ณ ์ ๋ฆฌํ๋ ์กฐ์ฌ์ AI์
๋๋ค.",
|
1145 |
+
"executor": "๋น์ ์ ์ค์ PPT ์ฌ๋ผ์ด๋ ๋ด์ฉ์ ์์ฑํ๋ ์คํ์ AI์
๋๋ค."
|
1146 |
+
}
|
1147 |
+
|
1148 |
+
full_messages = [
|
1149 |
+
{"role": "system", "content": system_prompts.get(role, "")},
|
1150 |
+
*messages
|
1151 |
+
]
|
1152 |
+
|
1153 |
+
payload = {
|
1154 |
+
"model": self.model_id,
|
1155 |
+
"messages": full_messages,
|
1156 |
+
"max_tokens": 4096,
|
1157 |
+
"temperature": 0.7,
|
1158 |
+
"top_p": 0.8,
|
1159 |
+
"stream": True,
|
1160 |
+
"stream_options": {"include_usage": True}
|
1161 |
+
}
|
1162 |
+
|
1163 |
+
logger.info(f"API ์คํธ๋ฆฌ๋ฐ ํธ์ถ ์์ - Role: {role}")
|
1164 |
+
|
1165 |
+
response = requests.post(
|
1166 |
+
self.api_url,
|
1167 |
+
headers=self.create_headers(),
|
1168 |
+
json=payload,
|
1169 |
+
stream=True,
|
1170 |
+
timeout=10
|
1171 |
+
)
|
1172 |
+
|
1173 |
+
if response.status_code != 200:
|
1174 |
+
logger.error(f"API ์ค๋ฅ: {response.status_code}")
|
1175 |
+
yield f"โ API ์ค๋ฅ ({response.status_code}): {response.text[:200]}"
|
1176 |
+
return
|
1177 |
+
|
1178 |
+
for line in response.iter_lines():
|
1179 |
+
if line:
|
1180 |
+
line = line.decode('utf-8')
|
1181 |
+
if line.startswith("data: "):
|
1182 |
+
data = line[6:]
|
1183 |
+
if data == "[DONE]":
|
1184 |
+
break
|
1185 |
+
try:
|
1186 |
+
chunk = json.loads(data)
|
1187 |
+
if "choices" in chunk and chunk["choices"]:
|
1188 |
+
content = chunk["choices"][0].get("delta", {}).get("content", "")
|
1189 |
+
if content:
|
1190 |
+
yield content
|
1191 |
+
except json.JSONDecodeError:
|
1192 |
+
continue
|
1193 |
+
|
1194 |
+
except requests.exceptions.Timeout:
|
1195 |
+
yield "โฑ๏ธ API ํธ์ถ ์๊ฐ์ด ์ด๊ณผ๋์์ต๋๋ค. ๋ค์ ์๋ํด์ฃผ์ธ์."
|
1196 |
+
except requests.exceptions.ConnectionError:
|
1197 |
+
yield "๐ API ์๋ฒ์ ์ฐ๊ฒฐํ ์ ์์ต๋๋ค. ์ธํฐ๋ท ์ฐ๊ฒฐ์ ํ์ธํด์ฃผ์ธ์."
|
1198 |
+
except Exception as e:
|
1199 |
+
logger.error(f"์คํธ๋ฆฌ๋ฐ ์ค ์ค๋ฅ: {str(e)}")
|
1200 |
+
yield f"โ ์ค๋ฅ ๋ฐ์: {str(e)}"
|
1201 |
+
|
1202 |
+
# ์์คํ
์ธ์คํด์ค ์์ฑ
|
1203 |
+
ppt_system = PPTCreationSystem()
|
1204 |
+
|
1205 |
+
# ===== ๋ฉ์ธ ์ฒ๋ฆฌ ํจ์ =====
|
1206 |
+
def process_ppt_streaming(ppt_topic: str, template_name: str, audience_type: str, language: str,
|
1207 |
+
custom_slides: List[Dict], slide_count: int, seed: int, uploaded_file,
|
1208 |
+
use_web_search: bool, theme_name: str = "Minimal Light",
|
1209 |
+
progress=gr.Progress()):
|
1210 |
+
"""ํตํฉ๋ PPT ์์ฑ ์ฒ๋ฆฌ - 3์ ํ์ ์์คํ
์ฌ์ฉ"""
|
1211 |
+
# Update global variables
|
1212 |
+
global current_topic, uploaded_content, current_language
|
1213 |
+
current_topic = ppt_topic
|
1214 |
+
current_language = language
|
1215 |
+
|
1216 |
+
# Read uploaded file content
|
1217 |
+
uploaded_content = ""
|
1218 |
+
if uploaded_file is not None:
|
1219 |
+
try:
|
1220 |
+
uploaded_content = read_uploaded_file(uploaded_file.name)
|
1221 |
+
print(f"[File Upload] Content length: {len(uploaded_content)} characters")
|
1222 |
+
except Exception as e:
|
1223 |
+
print(f"[File Upload] Error: {str(e)}")
|
1224 |
+
uploaded_content = ""
|
1225 |
+
|
1226 |
+
# Template selection and slide configuration
|
1227 |
+
try:
|
1228 |
+
if template_name == "Custom" and custom_slides:
|
1229 |
+
slides = [{"title": "Cover", "style": "Title Slide (Hero)", "prompt_hint": "Presentation cover"}]
|
1230 |
+
slides.extend(custom_slides)
|
1231 |
+
slides.append({"title": "Thank You", "style": "Thank You Slide", "prompt_hint": "Presentation closing and key message"})
|
1232 |
+
else:
|
1233 |
+
template = PPT_TEMPLATES.get(template_name)
|
1234 |
+
if not template:
|
1235 |
+
yield "", "", "", None, f"โ Template '{template_name}' not found."
|
1236 |
+
return
|
1237 |
+
slides = generate_dynamic_slides(ppt_topic, template, slide_count)
|
1238 |
+
except Exception as e:
|
1239 |
+
print(f"[Slide Configuration] Error: {str(e)}")
|
1240 |
+
yield "", "", "", None, f"โ Error configuring slides: {str(e)}"
|
1241 |
+
return
|
1242 |
+
|
1243 |
+
if not slides:
|
1244 |
+
yield "", "", "", None, "No slides defined."
|
1245 |
+
return
|
1246 |
+
|
1247 |
+
total_slides = len(slides)
|
1248 |
+
print(f"\n[PPT Generation] Starting - Total {total_slides} slides (Cover + {slide_count} content + Thank You)")
|
1249 |
+
print(f"[PPT Generation] Topic: {ppt_topic}")
|
1250 |
+
print(f"[PPT Generation] Template: {template_name}")
|
1251 |
+
print(f"[PPT Generation] Audience: {audience_type}")
|
1252 |
+
print(f"[PPT Generation] Language: {language}")
|
1253 |
+
print(f"[PPT Generation] Design Theme: {theme_name}")
|
1254 |
+
print(f"[PPT Generation] Web Search: {'Enabled' if use_web_search else 'Disabled'}")
|
1255 |
+
|
1256 |
+
conversation_log = []
|
1257 |
+
all_responses = {"supervisor": [], "researcher": [], "executor": []}
|
1258 |
+
|
1259 |
+
try:
|
1260 |
+
# 1๋จ๊ณ: ๊ฐ๋
์ AI ์ด๊ธฐ ๋ถ์ ๋ฐ ํค์๋ ์ถ์ถ
|
1261 |
+
progress(0.1, "๐ง ๊ฐ๋
์ AI๊ฐ PPT ๊ตฌ์กฐ๋ฅผ ์ค๊ณ ์ค...")
|
1262 |
+
supervisor_prompt = ppt_system.create_supervisor_initial_prompt(ppt_topic)
|
1263 |
+
supervisor_initial_response = ""
|
1264 |
+
|
1265 |
+
supervisor_text = "[PPT ๊ตฌ์กฐ ์ค๊ณ] ๐ ์์ฑ ์ค...\n"
|
1266 |
+
for chunk in ppt_system.call_llm_streaming(
|
1267 |
+
[{"role": "user", "content": supervisor_prompt}],
|
1268 |
+
"supervisor"
|
1269 |
+
):
|
1270 |
+
supervisor_initial_response += chunk
|
1271 |
+
supervisor_text = f"[PPT ๊ตฌ์กฐ ์ค๊ณ] - {datetime.now().strftime('%H:%M:%S')}\n{supervisor_initial_response}"
|
1272 |
+
yield supervisor_text, "", "", None, "๐ ๊ฐ๋
์ AI๊ฐ PPT ๊ตฌ์กฐ๋ฅผ ์ค๊ณ ์ค..."
|
1273 |
+
|
1274 |
+
all_responses["supervisor"].append(supervisor_initial_response)
|
1275 |
+
|
1276 |
+
# 2๋จ๊ณ: ์น ๊ฒ์ ์ํ (์ ํ๋ ๊ฒฝ์ฐ)
|
1277 |
+
search_results = {}
|
1278 |
+
if use_web_search and BRAVE_API_TOKEN:
|
1279 |
+
progress(0.2, "๐ PPT ์ฝํ
์ธ ๊ฒ์ ์ค...")
|
1280 |
+
keywords = ppt_system.extract_keywords(supervisor_initial_response)
|
1281 |
+
logger.info(f"์ถ์ถ๋ ํค์๋: {keywords}")
|
1282 |
+
|
1283 |
+
researcher_text = "[์ฝํ
์ธ ๊ฒ์] ๐ ๊ฒ์ ์ค...\n"
|
1284 |
+
yield supervisor_text, researcher_text, "", None, "๐ PPT ์ฝํ
์ธ ๊ฒ์ ์ค..."
|
1285 |
+
|
1286 |
+
total_search_count = 0
|
1287 |
+
|
1288 |
+
# ์๋ ํค์๋๋ก ๊ฒ์
|
1289 |
+
for keyword in keywords:
|
1290 |
+
try:
|
1291 |
+
results = ppt_system.brave_search(keyword)
|
1292 |
+
if results:
|
1293 |
+
search_results[keyword] = results
|
1294 |
+
total_search_count += len(results)
|
1295 |
+
researcher_text += f"โ '{keyword}' ๊ฒ์ ์๋ฃ ({len(results)}๊ฐ ๊ฒฐ๊ณผ)\n"
|
1296 |
+
yield supervisor_text, researcher_text, "", None, f"๐ '{keyword}' ๊ฒ์ ์ค..."
|
1297 |
+
except Exception as e:
|
1298 |
+
print(f"[Search] Error searching for '{keyword}': {str(e)}")
|
1299 |
+
|
1300 |
+
researcher_text += f"\n๐ ์ด {total_search_count}๊ฐ์ ๊ฒ์ ๊ฒฐ๊ณผ ์์ง ์๋ฃ\n"
|
1301 |
+
|
1302 |
+
# 3๋จ๊ณ: ์กฐ์ฌ์ AI๊ฐ ๊ฒ์ ๊ฒฐ๊ณผ ์ ๋ฆฌ
|
1303 |
+
progress(0.3, "๐ ์กฐ์ฌ์ AI๊ฐ ์ฝํ
์ธ ์ ๋ฆฌ ์ค...")
|
1304 |
+
researcher_prompt = ppt_system.create_researcher_prompt(ppt_topic, supervisor_initial_response, search_results)
|
1305 |
+
researcher_response = ""
|
1306 |
+
|
1307 |
+
researcher_text = "[PPT ์ฝํ
์ธ ์ ๋ฆฌ] ๐ ์์ฑ ์ค...\n"
|
1308 |
+
for chunk in ppt_system.call_llm_streaming(
|
1309 |
+
[{"role": "user", "content": researcher_prompt}],
|
1310 |
+
"researcher"
|
1311 |
+
):
|
1312 |
+
researcher_response += chunk
|
1313 |
+
researcher_text = f"[PPT ์ฝํ
์ธ ์ ๋ฆฌ] - {datetime.now().strftime('%H:%M:%S')}\n{researcher_response}"
|
1314 |
+
yield supervisor_text, researcher_text, "", None, "๐ ์กฐ์ฌ์ AI๊ฐ ์ฝํ
์ธ ์ ๋ฆฌ ์ค..."
|
1315 |
+
|
1316 |
+
all_responses["researcher"].append(researcher_response)
|
1317 |
+
|
1318 |
+
# 4๋จ๊ณ: ๊ฐ๋
์ AI๊ฐ ์กฐ์ฌ ๋ด์ฉ ๊ธฐ๋ฐ์ผ๋ก ์คํ ์ง์
|
1319 |
+
progress(0.4, "๐ฏ ๊ฐ๋
์ AI๊ฐ ์ ์ ์ง์ ์ค...")
|
1320 |
+
supervisor_execution_prompt = ppt_system.create_supervisor_execution_prompt(ppt_topic, researcher_response)
|
1321 |
+
supervisor_execution_response = ""
|
1322 |
+
|
1323 |
+
supervisor_text += "\n\n---\n\n[PPT ์ ์ ์ง์] ๐ ์์ฑ ์ค...\n"
|
1324 |
+
for chunk in ppt_system.call_llm_streaming(
|
1325 |
+
[{"role": "user", "content": supervisor_execution_prompt}],
|
1326 |
+
"supervisor"
|
1327 |
+
):
|
1328 |
+
supervisor_execution_response += chunk
|
1329 |
+
temp_text = f"{all_responses['supervisor'][0]}\n\n---\n\n[PPT ์ ์ ์ง์] - {datetime.now().strftime('%H:%M:%S')}\n{supervisor_execution_response}"
|
1330 |
+
supervisor_text = f"[PPT ๊ตฌ์กฐ ์ค๊ณ] - {datetime.now().strftime('%H:%M:%S')}\n{temp_text}"
|
1331 |
+
yield supervisor_text, researcher_text, "", None, "๐ฏ ๊ฐ๋
์ AI๊ฐ ์ ์ ์ง์ ์ค..."
|
1332 |
+
|
1333 |
+
all_responses["supervisor"].append(supervisor_execution_response)
|
1334 |
+
|
1335 |
+
# 5๋จ๊ณ: ์คํ์ AI๊ฐ ์กฐ์ฌ ๋ด์ฉ๊ณผ ์ง์๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ์ด๊ธฐ PPT ์์ฑ
|
1336 |
+
progress(0.5, "๐ ์คํ์ AI๊ฐ PPT ์์ฑ ์ค...")
|
1337 |
+
executor_prompt = ppt_system.create_executor_prompt(ppt_topic, supervisor_execution_response, researcher_response)
|
1338 |
+
executor_response = ""
|
1339 |
+
|
1340 |
+
executor_text = "[์ด๊ธฐ PPT ์์ฑ] ๐ ์์ฑ ์ค...\n"
|
1341 |
+
for chunk in ppt_system.call_llm_streaming(
|
1342 |
+
[{"role": "user", "content": executor_prompt}],
|
1343 |
+
"executor"
|
1344 |
+
):
|
1345 |
+
executor_response += chunk
|
1346 |
+
executor_text = f"[์ด๊ธฐ PPT ์์ฑ] - {datetime.now().strftime('%H:%M:%S')}\n{executor_response}"
|
1347 |
+
yield supervisor_text, researcher_text, executor_text, None, "๐ ์คํ์ AI๊ฐ PPT ์์ฑ ์ค..."
|
1348 |
+
|
1349 |
+
all_responses["executor"].append(executor_response)
|
1350 |
+
|
1351 |
+
# 5.5๋จ๊ณ: ์คํ์ AI ์๋ต ํ์ฑ (๊ฐ์ ๋ ํ์ ์ฌ์ฉ)
|
1352 |
+
progress(0.55, "๐ ์คํ์ AI ์๋ต์ ์ฌ๋ผ์ด๋๋ก ๋ณํ ์ค...")
|
1353 |
+
|
1354 |
+
# ๊ฐ์ ๋ ํ์ ์ฌ์ฉ
|
1355 |
+
parsed_slides = parse_executor_response(executor_response, slides, language)
|
1356 |
+
logger.info(f"ํ์ฑ๋ ์ฌ๋ผ์ด๋ ์: {len(parsed_slides)}")
|
1357 |
+
|
1358 |
+
# ํ์ฑ ์ฑ๊ณต ์ฌ๋ถ ํ์ธ
|
1359 |
+
parsing_success = len(parsed_slides) > 0
|
1360 |
+
|
1361 |
+
# ํ์ฑ ๊ฒฐ๊ณผ ๋ก๊ทธ
|
1362 |
+
for slide_idx, slide_data in parsed_slides.items():
|
1363 |
+
logger.info(f"[ํ์ฑ ๊ฒฐ๊ณผ] ์ฌ๋ผ์ด๋ {slide_idx + 1}:")
|
1364 |
+
logger.info(f" - ์ ๋ชฉ: {slide_data.get('title', 'N/A')}")
|
1365 |
+
logger.info(f" - ๋ถ์ ๋ชฉ: {slide_data.get('subtitle', 'N/A')}")
|
1366 |
+
logger.info(f" - ๋ถ๋ฆฟ ํฌ์ธํธ ์: {len(slide_data.get('bullet_points', []))}")
|
1367 |
+
if slide_data.get('bullet_points'):
|
1368 |
+
logger.info(f" - ์ฒซ ๋ฒ์งธ ๋ถ๋ฆฟ: {slide_data['bullet_points'][0]}")
|
1369 |
+
|
1370 |
+
# ํ์ฑ ์คํจ ์ ๊ฒฝ๊ณ ๋ฐ ๋์ฒด ๋ฐฉ์
|
1371 |
+
if not parsing_success:
|
1372 |
+
logger.warning("[ํ์ฑ] ์คํ์ ์๋ต ํ์ฑ ์คํจ - ์คํ์ ์๋ต ์๋ฌธ์ ์ง์ ์ฌ์ฉ ์๋")
|
1373 |
+
|
1374 |
+
# ์คํ์ ์๋ต์ ์ง์ ๋ณด์ฌ์ฃผ๊ธฐ (๋๋ฒ๊น
์ฉ)
|
1375 |
+
yield supervisor_text, researcher_text, executor_text + "\n\nโ ๏ธ ํ์ฑ ์คํจ - ๋์ฒด ๋ฐฉ๋ฒ ์ฌ์ฉ ์ค...", None, "โ ๏ธ ์ฌ๋ผ์ด๋ ํ์ฑ ์ค ๋ฌธ์ ๋ฐ๊ฒฌ, ๋์ฒด ๋ฐฉ๋ฒ ์ฌ์ฉ..."
|
1376 |
+
|
1377 |
+
# 6๋จ๊ณ: ์ค์ ์ฌ๋ผ์ด๋ ์์ฑ (๊ฐ์ ๋ ๋ก์ง)
|
1378 |
+
progress(0.6, "๐จ ์ฌ๋ผ์ด๋ ์ด๋ฏธ์ง ์์ฑ ์ค...")
|
1379 |
+
results = []
|
1380 |
+
preview_html = """
|
1381 |
+
<style>
|
1382 |
+
.slides-container {
|
1383 |
+
width: 100%;
|
1384 |
+
max-width: 1400px;
|
1385 |
+
margin: 0 auto;
|
1386 |
+
}
|
1387 |
+
</style>
|
1388 |
+
<div class="slides-container">
|
1389 |
+
"""
|
1390 |
+
|
1391 |
+
# Process each slide with improved logic
|
1392 |
+
for i, slide in enumerate(slides):
|
1393 |
+
try:
|
1394 |
+
progress((0.6 + (0.3 * i / total_slides)), f"์ฌ๋ผ์ด๋ {i+1}/{total_slides} ์ฒ๋ฆฌ ์ค...")
|
1395 |
|
1396 |
+
# Translate slide title if Korean
|
1397 |
+
display_title = slide.get('title', '')
|
1398 |
+
if language == "Korean" and slide.get('title', '') in SLIDE_TITLE_TRANSLATIONS:
|
1399 |
+
display_title = SLIDE_TITLE_TRANSLATIONS[slide.get('title', '')]
|
1400 |
|
1401 |
+
slide_info = f"Slide {i+1}: {display_title}"
|
1402 |
+
slide_context = f"{slide.get('title', '')} - {slide.get('prompt_hint', '')}"
|
1403 |
+
|
1404 |
+
# ํ์ฑ๋ ๋ฐ์ดํฐ ํ์ธ ๋ฐ ์ฌ์ฉ
|
1405 |
+
content = None
|
1406 |
+
speaker_notes = ""
|
1407 |
+
|
1408 |
+
if i in parsed_slides and parsing_success:
|
1409 |
+
# ํ์ฑ๋ ๋ฐ์ดํฐ ์ฌ์ฉ
|
1410 |
+
parsed_data = parsed_slides[i]
|
1411 |
+
logger.info(f"[์ฌ๋ผ์ด๋ {i+1}] ์คํ์ AI์ ํ์ฑ๋ ์ฝํ
์ธ ์ฌ์ฉ")
|
1412 |
+
|
1413 |
+
# ๋ถ๋ฆฟ ํฌ์ธํธ ๊ฒ์ฆ
|
1414 |
+
valid_bullets = []
|
1415 |
+
for bp in parsed_data.get("bullet_points", []):
|
1416 |
+
# ์๋ฏธ์๋ placeholder ์ ๊ฑฐ
|
1417 |
+
if bp and not any(skip in bp for skip in ["Point 1", "Point 2", "Point 3", "Point 4", "Point 5", "๐ Point"]):
|
1418 |
+
valid_bullets.append(bp)
|
1419 |
+
|
1420 |
+
# ์ ํจํ ๋ถ๋ฆฟ ํฌ์ธํธ๊ฐ ์์ผ๋ฉด ์ฌ์ฉ
|
1421 |
+
if len(valid_bullets) >= 3: # ์ต์ 3๊ฐ ์ด์์ผ ๋๋ง ์ฌ์ฉ
|
1422 |
+
content = {
|
1423 |
+
"subtitle": parsed_data.get("subtitle") or display_title,
|
1424 |
+
"bullet_points": valid_bullets[:5] # ์ต๋ 5๊ฐ
|
1425 |
+
}
|
1426 |
+
speaker_notes = parsed_data.get("speaker_notes", "")
|
1427 |
+
logger.info(f"[์ฌ๋ผ์ด๋ {i+1}] ํ์ฑ๋ ์ฝํ
์ธ ์ฌ์ฉ ์๋ฃ - ๋ถ๋ฆฟ {len(valid_bullets)}๊ฐ")
|
1428 |
+
else:
|
1429 |
+
logger.warning(f"[์ฌ๋ผ์ด๋ {i+1}] ๋ถ๋ฆฟ ํฌ์ธํธ ๋ถ์กฑ ({len(valid_bullets)}๊ฐ) - ์คํ์ ์๋ต์์ ์ฌ์ถ์ถ ์๋")
|
1430 |
+
|
1431 |
+
# ์คํ์ ์๋ต์์ ํด๋น ์ฌ๋ผ์ด๋ ๊ด๋ จ ๋ด์ฉ ์ฌ์ถ์ถ
|
1432 |
+
slide_keywords = [display_title, slide.get('title', ''), slide.get('prompt_hint', '')]
|
1433 |
+
extracted_content = extract_relevant_content_from_executor(
|
1434 |
+
executor_response, slide_keywords, i+1, slide.get('title', '')
|
1435 |
+
)
|
1436 |
+
|
1437 |
+
if extracted_content and len(extracted_content.get("bullet_points", [])) >= 3:
|
1438 |
+
content = extracted_content
|
1439 |
+
speaker_notes = extracted_content.get("speaker_notes", "")
|
1440 |
+
logger.info(f"[์ฌ๋ผ์ด๋ {i+1}] ์คํ์ ์๋ต์์ ์ฌ์ถ์ถ ์ฑ๊ณต")
|
1441 |
+
|
1442 |
+
# ํ์ฑ ์คํจํ๊ฑฐ๋ ์ฝํ
์ธ ๊ฐ ์์ผ๋ฉด ์คํ์ ์๋ต์์ ์ง์ ์ถ์ถ
|
1443 |
+
if not content:
|
1444 |
+
logger.warning(f"[์ฌ๋ผ์ด๋ {i+1}] ํ์ฑ ์คํจ - ์คํ์ ์๋ต์์ ์ง์ ์ถ์ถ ์๋")
|
1445 |
+
|
1446 |
+
# ์ฌ๋ผ์ด๋ ๋ฒํธ๋ก ์คํ์ ์๋ต์์ ํด๋น ๋ถ๋ถ ์ฐพ๊ธฐ
|
1447 |
+
slide_section = extract_slide_section_from_executor(executor_response, i+1)
|
1448 |
+
|
1449 |
+
if slide_section:
|
1450 |
+
content = parse_slide_section(slide_section, display_title)
|
1451 |
+
speaker_notes = extract_speaker_notes_from_section(slide_section)
|
1452 |
+
logger.info(f"[์ฌ๋ผ์ด๋ {i+1}] ์คํ์ ์๋ต์์ ์ง์ ์ถ์ถ ์ฑ๊ณต")
|
1453 |
+
|
1454 |
+
# ๊ทธ๋๋ ์ฝํ
์ธ ๊ฐ ์์ผ๋ฉด ์ต์ข
ํด๋ฐฑ
|
1455 |
+
if not content or len(content.get("bullet_points", [])) < 3:
|
1456 |
+
logger.warning(f"[์ฌ๋ผ์ด๋ {i+1}] ๋ชจ๋ ๋ฐฉ๋ฒ ์คํจ - generate_slide_content ํด๋ฐฑ ์ฌ์ฉ")
|
1457 |
+
|
1458 |
+
# Thank You slide ํน๋ณ ์ฒ๋ฆฌ
|
1459 |
+
if slide.get('title') == 'Thank You':
|
1460 |
+
conclusion_phrase = generate_conclusion_phrase(
|
1461 |
+
ppt_topic, audience_type, language,
|
1462 |
+
FRIENDLI_TOKEN, API_URL, MODEL_ID, AUDIENCE_TYPES
|
1463 |
+
)
|
1464 |
+
content = {
|
1465 |
+
"subtitle": conclusion_phrase,
|
1466 |
+
"bullet_points": []
|
1467 |
+
}
|
1468 |
+
speaker_notes = generate_closing_notes(
|
1469 |
+
ppt_topic, conclusion_phrase, audience_type, language,
|
1470 |
+
FRIENDLI_TOKEN, API_URL, MODEL_ID, AUDIENCE_TYPES
|
1471 |
+
)
|
1472 |
+
else:
|
1473 |
+
# ์ผ๋ฐ ์ฌ๋ผ์ด๋ ํด๋ฐฑ ์์ฑ
|
1474 |
+
content = generate_slide_content(
|
1475 |
+
ppt_topic, slide.get('title', ''), slide_context, audience_type, language,
|
1476 |
+
uploaded_content, list(search_results.values()) if use_web_search else [],
|
1477 |
+
FRIENDLI_TOKEN, API_URL, MODEL_ID, AUDIENCE_TYPES
|
1478 |
+
)
|
1479 |
+
speaker_notes = generate_presentation_notes(
|
1480 |
+
ppt_topic, slide.get('title', ''), content, audience_type, language,
|
1481 |
+
FRIENDLI_TOKEN, API_URL, MODEL_ID, AUDIENCE_TYPES
|
1482 |
+
)
|
1483 |
+
|
1484 |
+
# ๋ฐํ์ ๋
ธํธ๊ฐ ์์ผ๋ฉด ์์ฑ
|
1485 |
+
if not speaker_notes:
|
1486 |
+
speaker_notes = generate_presentation_notes(
|
1487 |
+
ppt_topic, slide.get('title', ''), content, audience_type, language,
|
1488 |
+
FRIENDLI_TOKEN, API_URL, MODEL_ID, AUDIENCE_TYPES
|
1489 |
+
)
|
1490 |
+
|
1491 |
+
# Generate prompt and image
|
1492 |
+
style_key = slide.get("style", "Colorful Mind Map")
|
1493 |
+
if style_key in STYLE_TEMPLATES:
|
1494 |
+
style_info = STYLE_TEMPLATES[style_key]
|
1495 |
+
prompt = generate_prompt_with_llm(
|
1496 |
+
ppt_topic, style_info["example"],
|
1497 |
+
slide_context, uploaded_content,
|
1498 |
+
FRIENDLI_TOKEN, API_URL, MODEL_ID
|
1499 |
+
)
|
1500 |
+
|
1501 |
+
# Generate image
|
1502 |
+
slide_seed = seed + i
|
1503 |
+
img, used_prompt = generate_image(
|
1504 |
+
prompt, slide_seed, slide_info,
|
1505 |
+
REPLICATE_API_TOKEN, current_topic, current_language,
|
1506 |
+
FRIENDLI_TOKEN, API_URL, MODEL_ID
|
1507 |
+
)
|
1508 |
+
|
1509 |
+
# Prepare slide data
|
1510 |
+
slide_data = {
|
1511 |
+
"slide_number": i + 1,
|
1512 |
+
"title": display_title,
|
1513 |
+
"subtitle": content["subtitle"],
|
1514 |
+
"bullet_points": content["bullet_points"][:5],
|
1515 |
+
"image": img,
|
1516 |
+
"style": style_info["name"],
|
1517 |
+
"speaker_notes": speaker_notes,
|
1518 |
+
"topic": ppt_topic
|
1519 |
+
}
|
1520 |
+
|
1521 |
+
# ๋๋ฒ๊น
: ์ค์ ์ฌ์ฉ๋ ์ฝํ
์ธ ๋ก๊ทธ
|
1522 |
+
logger.info(f"[์ฌ๋ผ์ด๋ {i+1}] ์ต์ข
์ฝํ
์ธ :")
|
1523 |
+
logger.info(f" - ๋ถ์ ๋ชฉ: {slide_data['subtitle']}")
|
1524 |
+
logger.info(f" - ๋ถ๋ฆฟ ํฌ์ธํธ: {len(slide_data['bullet_points'])}๊ฐ")
|
1525 |
+
if slide_data['bullet_points']:
|
1526 |
+
logger.info(f" - ์ฒซ ๋ฒ์งธ ๋ถ๋ฆฟ: {slide_data['bullet_points'][0]}")
|
1527 |
+
|
1528 |
+
# Generate preview HTML
|
1529 |
+
preview_html += create_slide_preview_html(slide_data)
|
1530 |
+
|
1531 |
+
# Update current state
|
1532 |
+
yield supervisor_text, researcher_text, executor_text, None, f"### ๐ {slide_info} ์์ฑ ์ค..."
|
1533 |
+
|
1534 |
+
results.append({
|
1535 |
+
"slide_data": slide_data,
|
1536 |
+
"success": img is not None
|
1537 |
+
})
|
1538 |
+
else:
|
1539 |
+
logger.error(f"[์ฌ๋ผ์ด๋ {i+1}] ์ ์ ์๋ ์คํ์ผ: {style_key}")
|
1540 |
+
|
1541 |
+
except Exception as e:
|
1542 |
+
logger.error(f"[์ฌ๋ผ์ด๋ {i+1}] ์ฒ๋ฆฌ ์ค ์ค๋ฅ: {str(e)}")
|
1543 |
+
import traceback
|
1544 |
+
traceback.print_exc()
|
1545 |
+
|
1546 |
+
# ์ค๋ฅ ์ ๊ธฐ๋ณธ๊ฐ
|
1547 |
+
results.append({
|
1548 |
+
"slide_data": {
|
1549 |
+
"slide_number": i + 1,
|
1550 |
+
"title": display_title,
|
1551 |
+
"subtitle": "์ฝํ
์ธ ์์ฑ ์ค ์ค๋ฅ ๋ฐ์",
|
1552 |
+
"bullet_points": ["โข ์ค๋ฅ๋ก ์ธํด ์ฝํ
์ธ ๋ฅผ ์์ฑํ ์ ์์ต๋๋ค"],
|
1553 |
+
"image": None,
|
1554 |
+
"style": "Error",
|
1555 |
+
"speaker_notes": "์ค๋ฅ๋ก ์ธํด ๋ฐํ์ ๋
ธํธ๋ฅผ ์์ฑํ ์ ์์ต๋๋ค.",
|
1556 |
+
"topic": ppt_topic
|
1557 |
+
},
|
1558 |
+
"success": False
|
1559 |
+
})
|
1560 |
+
|
1561 |
+
# Create PPTX file
|
1562 |
+
progress(0.95, "Creating PPTX file...")
|
1563 |
+
pptx_path = None
|
1564 |
try:
|
1565 |
+
pptx_path = create_pptx_file(results, ppt_topic, template_name, theme_name, DESIGN_THEMES)
|
1566 |
+
except Exception as e:
|
1567 |
+
print(f"[PPTX] File creation error: {str(e)}")
|
1568 |
+
import traceback
|
1569 |
+
traceback.print_exc()
|
1570 |
+
|
1571 |
+
preview_html += "</div>"
|
1572 |
+
progress(1.0, "Complete!")
|
1573 |
+
successful = sum(1 for r in results if r["success"])
|
1574 |
+
final_status = f"### ๐ Generation complete! {successful} out of {total_slides} slides succeeded"
|
1575 |
+
|
1576 |
+
# Save global variables
|
1577 |
+
global current_slides_data, current_template, current_theme
|
1578 |
+
current_slides_data = results
|
1579 |
+
current_template = template_name
|
1580 |
+
current_theme = theme_name
|
1581 |
+
|
1582 |
+
if pptx_path:
|
1583 |
+
final_status += f"\n\n### ๐ฅ PPTX file is ready!"
|
1584 |
+
final_status += f"\n\n๐ค **Speaker notes for {audience_type} included in each slide!**"
|
1585 |
+
if PROCESS_FLOW_AVAILABLE:
|
1586 |
+
final_status += f"\n\n๐ง **Process flow diagrams are automatically generated ({language} support)**"
|
1587 |
+
|
1588 |
+
yield supervisor_text, researcher_text, executor_text, pptx_path, final_status
|
1589 |
+
|
1590 |
+
except Exception as e:
|
1591 |
+
error_msg = f"โ ์ฒ๋ฆฌ ์ค ์ค๋ฅ: {str(e)}"
|
1592 |
+
print(f"[PPT Generation] Critical error: {str(e)}")
|
1593 |
+
import traceback
|
1594 |
+
traceback.print_exc()
|
1595 |
+
yield "", "", "", None, error_msg
|
1596 |
+
|
1597 |
+
def generate_ppt_handler(topic, template_name, audience_type, language, theme_name, slide_count,
|
1598 |
+
seed, file_upload, use_web_search, custom_slide_count,
|
1599 |
+
progress=gr.Progress(), *custom_inputs):
|
1600 |
+
if not topic.strip():
|
1601 |
+
yield "", "", "", None, "โ Please enter a topic."
|
1602 |
+
return
|
1603 |
+
|
1604 |
+
# Process custom slides
|
1605 |
+
custom_slides = []
|
1606 |
+
if template_name == "Custom" and custom_inputs:
|
1607 |
+
try:
|
1608 |
+
# Convert custom_inputs to list to avoid tuple slicing issues
|
1609 |
+
custom_inputs_list = list(custom_inputs)
|
1610 |
|
1611 |
+
for i in range(0, min(custom_slide_count * 3, len(custom_inputs_list)), 3):
|
1612 |
+
title = custom_inputs_list[i] if i < len(custom_inputs_list) else ""
|
1613 |
+
style = custom_inputs_list[i+1] if i+1 < len(custom_inputs_list) else "Colorful Mind Map"
|
1614 |
+
hint = custom_inputs_list[i+2] if i+2 < len(custom_inputs_list) else ""
|
1615 |
+
|
1616 |
+
if title and style:
|
1617 |
+
custom_slides.append({
|
1618 |
+
"title": title,
|
1619 |
+
"style": style,
|
1620 |
+
"prompt_hint": hint
|
1621 |
+
})
|
1622 |
+
except Exception as e:
|
1623 |
+
print(f"[Custom Slides] Error processing custom inputs: {str(e)}")
|
1624 |
+
yield "", "", "", None, f"โ Error processing custom slides: {str(e)}"
|
1625 |
+
return
|
1626 |
+
|
1627 |
+
# Generate PPT
|
1628 |
+
try:
|
1629 |
+
for supervisor, researcher, executor, pptx_file, status in process_ppt_streaming(
|
1630 |
+
topic, template_name, audience_type, language, custom_slides, slide_count,
|
1631 |
+
seed, file_upload, use_web_search, theme_name, progress
|
1632 |
+
):
|
1633 |
+
yield supervisor, researcher, executor, pptx_file, status
|
1634 |
except Exception as e:
|
1635 |
+
print(f"[PPT Generation] Error: {str(e)}")
|
1636 |
import traceback
|
1637 |
+
traceback.print_exc()
|
1638 |
+
yield "", "", "", None, f"โ Error during PPT generation: {str(e)}"
|
1639 |
+
|
1640 |
+
# ===== Gradio UI =====
|
1641 |
+
with gr.Blocks(title="PPT Generator", theme=gr.themes.Soft(), css=get_css()) as demo:
|
1642 |
+
gr.Markdown("""
|
1643 |
+
# ๐ฏ Open GAMMA 'GAMJA' - AI Presentation Generator with 3-AI Collaboration
|
1644 |
+
|
1645 |
+
### Create professional presentations with AI-powered collaboration system!
|
1646 |
+
|
1647 |
+
** Community: https://discord.gg/openfreeai
|
1648 |
+
""")
|
1649 |
+
|
1650 |
+
# API token status check
|
1651 |
+
token_status = []
|
1652 |
+
if not REPLICATE_API_TOKEN:
|
1653 |
+
token_status.append("โ ๏ธ RAPI_TOKEN environment variable not set.")
|
1654 |
+
if not FRIENDLI_TOKEN:
|
1655 |
+
token_status.append("โ ๏ธ FRIENDLI_TOKEN environment variable not set.")
|
1656 |
+
if not BRAVE_API_TOKEN:
|
1657 |
+
token_status.append("โน๏ธ BAPI_TOKEN not available. Web search disabled.")
|
1658 |
+
if not PROCESS_FLOW_AVAILABLE:
|
1659 |
+
token_status.append("โน๏ธ process_flow_generator not available. Process flow diagrams disabled.")
|
1660 |
+
|
1661 |
+
if token_status:
|
1662 |
+
gr.Markdown("\n".join(token_status))
|
1663 |
+
|
1664 |
+
with gr.Row():
|
1665 |
+
with gr.Column(scale=1):
|
1666 |
+
# Language selection (at the top)
|
1667 |
+
language_select = gr.Radio(
|
1668 |
+
choices=["English", "Korean"],
|
1669 |
+
label="๐ Content Language",
|
1670 |
+
value="English",
|
1671 |
+
info="Select the language for your presentation content"
|
1672 |
+
)
|
1673 |
+
|
1674 |
+
# Example selection
|
1675 |
+
with gr.Row():
|
1676 |
+
example_btn = gr.Button("๐ Load Example", size="sm", variant="secondary")
|
1677 |
+
|
1678 |
+
# Basic inputs
|
1679 |
+
topic_input = gr.Textbox(
|
1680 |
+
label="Presentation Topic",
|
1681 |
+
placeholder="e.g., AI Startup Investment Pitch, New Product Launch, Digital Transformation Strategy",
|
1682 |
+
lines=2
|
1683 |
+
)
|
1684 |
+
|
1685 |
+
# Audience selection
|
1686 |
+
audience_select = gr.Dropdown(
|
1687 |
+
choices=list(AUDIENCE_TYPES.keys()),
|
1688 |
+
label="๐ญ Target Audience",
|
1689 |
+
value="General Staff",
|
1690 |
+
info="Content and tone will be automatically optimized for your audience"
|
1691 |
+
)
|
1692 |
+
|
1693 |
+
# Audience description display
|
1694 |
+
audience_info = gr.Markdown()
|
1695 |
+
|
1696 |
+
# PPT template selection
|
1697 |
+
template_select = gr.Dropdown(
|
1698 |
+
choices=list(PPT_TEMPLATES.keys()),
|
1699 |
+
label="PPT Template",
|
1700 |
+
value="Business Proposal",
|
1701 |
+
info="Select a template that matches your purpose"
|
1702 |
+
)
|
1703 |
+
|
1704 |
+
# Design theme selection
|
1705 |
+
theme_select = gr.Dropdown(
|
1706 |
+
choices=list(DESIGN_THEMES.keys()),
|
1707 |
+
label="Design Theme",
|
1708 |
+
value="Minimal Light",
|
1709 |
+
info="Overall design style for your presentation"
|
1710 |
+
)
|
1711 |
+
|
1712 |
+
# Theme preview
|
1713 |
+
theme_preview = gr.HTML()
|
1714 |
+
|
1715 |
+
# Slide count selection
|
1716 |
+
slide_count = gr.Slider(
|
1717 |
+
minimum=6,
|
1718 |
+
maximum=20,
|
1719 |
+
value=8,
|
1720 |
+
step=1,
|
1721 |
+
label="Number of Content Slides (excluding Cover and Thank You)",
|
1722 |
+
info="Select the number of content slides to generate (not used in Custom template)"
|
1723 |
+
)
|
1724 |
+
|
1725 |
+
# File upload
|
1726 |
+
file_upload = gr.File(
|
1727 |
+
label="Reference Material Upload (Optional)",
|
1728 |
+
file_types=[".pdf", ".csv", ".txt"],
|
1729 |
+
type="filepath",
|
1730 |
+
value=None
|
1731 |
+
)
|
1732 |
+
|
1733 |
+
# Web search option
|
1734 |
+
use_web_search = gr.Checkbox(
|
1735 |
+
label="Use Web Search",
|
1736 |
+
value=True,
|
1737 |
+
info="Use Brave Search to include latest information"
|
1738 |
+
)
|
1739 |
+
|
1740 |
+
# Template description
|
1741 |
+
template_info = gr.Markdown()
|
1742 |
+
|
1743 |
+
# Seed value
|
1744 |
+
seed_input = gr.Slider(
|
1745 |
+
minimum=1,
|
1746 |
+
maximum=100,
|
1747 |
+
value=10,
|
1748 |
+
step=1,
|
1749 |
+
label="Seed Value"
|
1750 |
+
)
|
1751 |
+
|
1752 |
+
generate_btn = gr.Button("๐ Generate PPT (AI creates all content automatically)", variant="primary", size="lg")
|
1753 |
+
|
1754 |
+
# Usage instructions
|
1755 |
+
with gr.Accordion("๐ How to Use", open=False):
|
1756 |
+
gr.Markdown(get_usage_instructions())
|
1757 |
+
|
1758 |
+
# Status display
|
1759 |
+
with gr.Row():
|
1760 |
+
with gr.Column():
|
1761 |
+
status_output = gr.Markdown(
|
1762 |
+
value="### ๐ Select a template and click the generate button!"
|
1763 |
+
)
|
1764 |
+
|
1765 |
+
# PPTX download area
|
1766 |
+
download_file = gr.File(
|
1767 |
+
label="๐ฅ Download Generated PPTX File",
|
1768 |
+
visible=True,
|
1769 |
+
elem_id="download-file"
|
1770 |
+
)
|
1771 |
+
|
1772 |
+
# AI outputs in tabs
|
1773 |
+
with gr.Tabs():
|
1774 |
+
with gr.TabItem("๐ค 3-AI Collaboration Process"):
|
1775 |
+
with gr.Row():
|
1776 |
+
# ๊ฐ๋
์ AI ์ถ๋ ฅ
|
1777 |
+
with gr.Column():
|
1778 |
+
gr.Markdown("### ๐ง Supervisor AI (Structure Design)")
|
1779 |
+
supervisor_output = gr.Textbox(
|
1780 |
+
label="",
|
1781 |
+
lines=20,
|
1782 |
+
max_lines=25,
|
1783 |
+
interactive=False,
|
1784 |
+
elem_classes=["supervisor-box"]
|
1785 |
+
)
|
1786 |
+
|
1787 |
+
# ์กฐ์ฌ์ AI ์ถ๋ ฅ
|
1788 |
+
with gr.Column():
|
1789 |
+
gr.Markdown("### ๐ Researcher AI (Content Collection)")
|
1790 |
+
researcher_output = gr.Textbox(
|
1791 |
+
label="",
|
1792 |
+
lines=20,
|
1793 |
+
max_lines=25,
|
1794 |
+
interactive=False,
|
1795 |
+
elem_classes=["researcher-box"]
|
1796 |
+
)
|
1797 |
+
|
1798 |
+
# ์คํ์ AI ์ถ๋ ฅ
|
1799 |
+
with gr.Column():
|
1800 |
+
gr.Markdown("### ๐ Executor AI (Slide Creation)")
|
1801 |
+
executor_output = gr.Textbox(
|
1802 |
+
label="",
|
1803 |
+
lines=20,
|
1804 |
+
max_lines=25,
|
1805 |
+
interactive=False,
|
1806 |
+
elem_classes=["executor-box"]
|
1807 |
+
)
|
1808 |
+
|
1809 |
+
with gr.TabItem("๐ PPT Preview"):
|
1810 |
+
# Preview area
|
1811 |
+
preview_output = gr.HTML(
|
1812 |
+
label="PPT Preview (16:9)",
|
1813 |
+
elem_classes="preview-container"
|
1814 |
+
)
|
1815 |
+
|
1816 |
+
# Custom slides section
|
1817 |
+
with gr.Accordion("๐ Custom Slide Configuration", open=False, elem_id="custom_accordion") as custom_accordion:
|
1818 |
+
gr.Markdown("Build your presentation without using templates. (3-20 slides)")
|
1819 |
+
|
1820 |
+
# Custom slide count selection
|
1821 |
+
custom_slide_count = gr.Slider(
|
1822 |
+
minimum=3,
|
1823 |
+
maximum=20,
|
1824 |
+
value=5,
|
1825 |
+
step=1,
|
1826 |
+
label="Number of Custom Slides",
|
1827 |
+
info="Select the number of custom slides to create"
|
1828 |
+
)
|
1829 |
+
|
1830 |
+
custom_slides_components = create_custom_slides_ui(initial_count=5)
|
1831 |
+
|
1832 |
+
# Connect events
|
1833 |
+
example_btn.click(
|
1834 |
+
fn=load_example,
|
1835 |
+
inputs=[template_select, language_select],
|
1836 |
+
outputs=[topic_input]
|
1837 |
+
)
|
1838 |
+
|
1839 |
+
audience_select.change(
|
1840 |
+
fn=update_audience_info,
|
1841 |
+
inputs=[audience_select],
|
1842 |
+
outputs=[audience_info]
|
1843 |
+
)
|
1844 |
+
|
1845 |
+
theme_select.change(
|
1846 |
+
fn=update_theme_preview,
|
1847 |
+
inputs=[theme_select],
|
1848 |
+
outputs=[theme_preview]
|
1849 |
+
)
|
1850 |
+
|
1851 |
+
template_select.change(
|
1852 |
+
fn=update_template_info,
|
1853 |
+
inputs=[template_select, slide_count],
|
1854 |
+
outputs=[template_info, slide_count, custom_accordion]
|
1855 |
+
)
|
1856 |
+
|
1857 |
+
slide_count.change(
|
1858 |
+
fn=lambda t, s: update_template_info(t, s)[0],
|
1859 |
+
inputs=[template_select, slide_count],
|
1860 |
+
outputs=[template_info]
|
1861 |
+
)
|
1862 |
+
|
1863 |
+
custom_slide_count.change(
|
1864 |
+
fn=update_custom_slides_visibility,
|
1865 |
+
inputs=[custom_slide_count],
|
1866 |
+
outputs=[slide["row"] for slide in custom_slides_components]
|
1867 |
+
)
|
1868 |
+
|
1869 |
+
# Flatten custom slide input components
|
1870 |
+
all_custom_inputs = []
|
1871 |
+
for slide in custom_slides_components:
|
1872 |
+
all_custom_inputs.extend([slide["title"], slide["style"], slide["hint"]])
|
1873 |
+
|
1874 |
+
generate_btn.click(
|
1875 |
+
fn=generate_ppt_handler,
|
1876 |
+
inputs=[
|
1877 |
+
topic_input, template_select, audience_select, language_select, theme_select,
|
1878 |
+
slide_count, seed_input, file_upload, use_web_search, custom_slide_count
|
1879 |
+
] + all_custom_inputs,
|
1880 |
+
outputs=[supervisor_output, researcher_output, executor_output, download_file, status_output]
|
1881 |
+
)
|
1882 |
+
|
1883 |
+
# Load initial info on startup
|
1884 |
+
demo.load(
|
1885 |
+
fn=lambda: (update_template_info(template_select.value, slide_count.value)[0],
|
1886 |
+
update_theme_preview(theme_select.value),
|
1887 |
+
update_audience_info(audience_select.value)),
|
1888 |
+
inputs=[],
|
1889 |
+
outputs=[template_info, theme_preview, audience_info]
|
1890 |
+
)
|
1891 |
|
1892 |
+
# Run app
|
1893 |
if __name__ == "__main__":
|
1894 |
+
demo.queue() # Enable queue for streaming
|
1895 |
+
demo.launch(ssr_mode=False)
|