Spaces:
Running
Running
Update ppt_generator.py
Browse files- ppt_generator.py +16 -20
ppt_generator.py
CHANGED
@@ -24,25 +24,6 @@ except ImportError:
|
|
24 |
|
25 |
from PIL import Image
|
26 |
|
27 |
-
# ๋ก์ปฌ ๋ชจ๋ imports (์ด ํ์ผ๋ค๋ ๋ถ๋ฆฌ ํ์)
|
28 |
-
from design_themes import DESIGN_THEMES
|
29 |
-
from diagram_utils import (
|
30 |
-
detect_diagram_type_with_score,
|
31 |
-
generate_diagram_json,
|
32 |
-
generate_diagram_locally,
|
33 |
-
DIAGRAM_GENERATORS_AVAILABLE
|
34 |
-
)
|
35 |
-
from image_generation import (
|
36 |
-
generate_cover_image_prompt,
|
37 |
-
generate_conclusion_image_prompt,
|
38 |
-
generate_diverse_prompt,
|
39 |
-
generate_flux_prompt,
|
40 |
-
pick_flux_style,
|
41 |
-
generate_ai_image_via_3d_api,
|
42 |
-
AI_IMAGE_ENABLED
|
43 |
-
)
|
44 |
-
from emoji_utils import has_emoji, get_emoji_for_content
|
45 |
-
|
46 |
|
47 |
##############################################################################
|
48 |
# Slide Layout Helper Functions
|
@@ -293,7 +274,22 @@ def create_advanced_ppt_from_content(
|
|
293 |
include_charts: bool = False,
|
294 |
include_ai_image: bool = False,
|
295 |
include_diagrams: bool = False,
|
296 |
-
include_flux_images: bool = False
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
297 |
) -> str:
|
298 |
"""Create advanced PPT file with enhanced visual content
|
299 |
ํ์ง 3D 1์ฅ + ์ผ๋ฐ ๋ค์ด์ด๊ทธ๋จ 2์ฅ + FLUX ์คํ์ผ 4์ฅ ์ด์ + 3D ์ด๋ฏธ์ง 2์ฅ ์ด์"""
|
|
|
24 |
|
25 |
from PIL import Image
|
26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
|
28 |
##############################################################################
|
29 |
# Slide Layout Helper Functions
|
|
|
274 |
include_charts: bool = False,
|
275 |
include_ai_image: bool = False,
|
276 |
include_diagrams: bool = False,
|
277 |
+
include_flux_images: bool = False,
|
278 |
+
# ํ์ํ ์ธ๋ถ ํจ์์ ๋ฐ์ดํฐ๋ฅผ ๋งค๊ฐ๋ณ์๋ก ๋ฐ์
|
279 |
+
DESIGN_THEMES: Dict = None,
|
280 |
+
detect_diagram_type_with_score = None,
|
281 |
+
generate_diagram_json = None,
|
282 |
+
generate_diagram_locally = None,
|
283 |
+
DIAGRAM_GENERATORS_AVAILABLE: bool = False,
|
284 |
+
generate_cover_image_prompt = None,
|
285 |
+
generate_conclusion_image_prompt = None,
|
286 |
+
generate_diverse_prompt = None,
|
287 |
+
generate_flux_prompt = None,
|
288 |
+
pick_flux_style = None,
|
289 |
+
generate_ai_image_via_3d_api = None,
|
290 |
+
AI_IMAGE_ENABLED: bool = False,
|
291 |
+
has_emoji = None,
|
292 |
+
get_emoji_for_content = None
|
293 |
) -> str:
|
294 |
"""Create advanced PPT file with enhanced visual content
|
295 |
ํ์ง 3D 1์ฅ + ์ผ๋ฐ ๋ค์ด์ด๊ทธ๋จ 2์ฅ + FLUX ์คํ์ผ 4์ฅ ์ด์ + 3D ์ด๋ฏธ์ง 2์ฅ ์ด์"""
|