Update presentation_assistant/presentation_assistant.py
Browse files
presentation_assistant/presentation_assistant.py
CHANGED
@@ -51,8 +51,8 @@ def generate_text2ppt_input_prompt(input_type, input_value, input_pages):
|
|
51 |
|
52 |
rule_value = """
|
53 |
===
|
54 |
-
- Write factually only about the content or link provided.
|
55 |
- Always use --- as a slide divider.
|
|
|
56 |
- Design and arrange the slides diversely with appropriate shapes, images(![Image](Image link), https://unsplash.com/ko/images/stock/non-copyrighted for actual use), tables(|-|), quotes(>), emphasis(bold, ``), emojis(https://kr.piliapp.com/twitter-symbols/), icons (https://kr.piliapp.com/symbol/#popular).
|
57 |
- Use emojis only once in every two pages, and use various other designs.
|
58 |
- When using images and tables, specify the size considering the page size so that all the text content appears.
|
@@ -86,11 +86,11 @@ def text2ppt(token_key, input_prompt, input_theme):
|
|
86 |
|
87 |
f = open("text2ppt_input.md", 'w')
|
88 |
for i in range(0, len(md_text_list)):
|
89 |
-
data = ""
|
90 |
-
if md_text_list[i] and "<!--" in md_text_list[i]:
|
91 |
-
|
92 |
data = data + md_text_list[i] + "\n"
|
93 |
-
print(data)
|
94 |
f.write(data)
|
95 |
f.close()
|
96 |
|
|
|
51 |
|
52 |
rule_value = """
|
53 |
===
|
|
|
54 |
- Always use --- as a slide divider.
|
55 |
+
- Write factually only about the content or link provided.
|
56 |
- Design and arrange the slides diversely with appropriate shapes, images(![Image](Image link), https://unsplash.com/ko/images/stock/non-copyrighted for actual use), tables(|-|), quotes(>), emphasis(bold, ``), emojis(https://kr.piliapp.com/twitter-symbols/), icons (https://kr.piliapp.com/symbol/#popular).
|
57 |
- Use emojis only once in every two pages, and use various other designs.
|
58 |
- When using images and tables, specify the size considering the page size so that all the text content appears.
|
|
|
86 |
|
87 |
f = open("text2ppt_input.md", 'w')
|
88 |
for i in range(0, len(md_text_list)):
|
89 |
+
# data = ""
|
90 |
+
# if md_text_list[i] and "<!--" in md_text_list[i]:
|
91 |
+
# data = "---" + "\n"
|
92 |
data = data + md_text_list[i] + "\n"
|
93 |
+
# print(data)
|
94 |
f.write(data)
|
95 |
f.close()
|
96 |
|