Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -59,6 +59,10 @@ def get_title_prompt(category):
|
|
59 |
4. ์ฌ์ฉ์๊ฐ ์
๋ ฅํ ๋ธ๋ก๊ทธ ์ฃผ์ , ํต์ฌํค์๋(Topic), ์ํ๋ช
์ด ๋ฌธ์ฅ ์์ชฝ์ ๋ค์ด๊ฐ๋๋ก ์ ๋ชฉ์ ์์ฑํ๋ผ.
|
60 |
5. '์ฟ ํก'์ด๋ ๋จ์ด๋ ์ ๋ชฉ์ ํํํ์ง ๋ง ๊ฒ.
|
61 |
"""
|
|
|
|
|
|
|
|
|
62 |
|
63 |
def get_outline_prompt(category):
|
64 |
if (category == "๊ณ ๊ฐ๋ฐ์ํ"):
|
@@ -84,6 +88,10 @@ def get_outline_prompt(category):
|
|
84 |
2. ๋ฐ๋์ [๋์
๋ถ]์ [๊ฒฐ๋ก ]์ ์ ๋ชฉ์ด ์ค๋ณต๋์ง ์๋๋ก ์์ฑํ๋ผ.
|
85 |
3. [๋์
๋ถ]์๋ ๊ณ ๊ฐ์ ์ค์ ๋ฆฌ๋ทฐ๋ฅผ ๋ถ์ํ์ฌ ๊ณต๊ฐ, ๋ฌธ์ ์ ๊ธฐ, ๊ตฌ๋งคํฌ์ธํธ ๋ฑ์ ์ ์ํ๋ผ.
|
86 |
"""
|
|
|
|
|
|
|
|
|
87 |
|
88 |
def get_blog_post_prompt(category):
|
89 |
if (category == "๊ณ ๊ฐ๋ฐ์ํ"):
|
@@ -114,6 +122,11 @@ def get_blog_post_prompt(category):
|
|
114 |
4. '์
์ฒด๋ก ๋ถํฐ ์ ๊ณต ๋ฐ์์ ์์ฑ', '์ฟ ํก ํํธ๋์ค'๋ฑ์ ํํ์ ๋ฐ๋์ ์ ์ธํ๋ผ.
|
115 |
"""
|
116 |
|
|
|
|
|
|
|
|
|
|
|
117 |
def get_style_prompt(style):
|
118 |
prompts = {
|
119 |
"์น๊ทผํ": """
|
@@ -291,7 +304,7 @@ with gr.Blocks() as demo:
|
|
291 |
gr.Markdown(f"# {title}")
|
292 |
|
293 |
gr.Markdown("### 1๋จ๊ณ: ํฌ์คํ
์นดํ
๊ณ ๋ฆฌ๋ฅผ ์ง์ ํด์ฃผ์ธ์", elem_id="step-title")
|
294 |
-
category = gr.Radio(choices=["๊ณ ๊ฐ๋ฐ์ํ","
|
295 |
|
296 |
gr.Markdown("---\n\n")
|
297 |
|
|
|
59 |
4. ์ฌ์ฉ์๊ฐ ์
๋ ฅํ ๋ธ๋ก๊ทธ ์ฃผ์ , ํต์ฌํค์๋(Topic), ์ํ๋ช
์ด ๋ฌธ์ฅ ์์ชฝ์ ๋ค์ด๊ฐ๋๋ก ์ ๋ชฉ์ ์์ฑํ๋ผ.
|
60 |
5. '์ฟ ํก'์ด๋ ๋จ์ด๋ ์ ๋ชฉ์ ํํํ์ง ๋ง ๊ฒ.
|
61 |
"""
|
62 |
+
elif (category == "1๊ฐ ๊ธฐ๋ฅ์ง์คํ"):
|
63 |
+
return """
|
64 |
+
#๋ธ๋ก๊ทธ ์ ๋ชฉ ์์ฑ ๊ท์น(1๊ฐ ๊ธฐ๋ฅ์ง์คํ)
|
65 |
+
"""
|
66 |
|
67 |
def get_outline_prompt(category):
|
68 |
if (category == "๊ณ ๊ฐ๋ฐ์ํ"):
|
|
|
88 |
2. ๋ฐ๋์ [๋์
๋ถ]์ [๊ฒฐ๋ก ]์ ์ ๋ชฉ์ด ์ค๋ณต๋์ง ์๋๋ก ์์ฑํ๋ผ.
|
89 |
3. [๋์
๋ถ]์๋ ๊ณ ๊ฐ์ ์ค์ ๋ฆฌ๋ทฐ๋ฅผ ๋ถ์ํ์ฌ ๊ณต๊ฐ, ๋ฌธ์ ์ ๊ธฐ, ๊ตฌ๋งคํฌ์ธํธ ๋ฑ์ ์ ์ํ๋ผ.
|
90 |
"""
|
91 |
+
elif (category == "1๊ฐ ๊ธฐ๋ฅ์ง์คํ"):
|
92 |
+
return """
|
93 |
+
#๋ธ๋ก๊ทธ ์์ฃผ์ ์์ฑ ๊ท์น(1๊ฐ ๊ธฐ๋ฅ์ง์คํ)
|
94 |
+
"""
|
95 |
|
96 |
def get_blog_post_prompt(category):
|
97 |
if (category == "๊ณ ๊ฐ๋ฐ์ํ"):
|
|
|
122 |
4. '์
์ฒด๋ก ๋ถํฐ ์ ๊ณต ๋ฐ์์ ์์ฑ', '์ฟ ํก ํํธ๋์ค'๋ฑ์ ํํ์ ๋ฐ๋์ ์ ์ธํ๋ผ.
|
123 |
"""
|
124 |
|
125 |
+
elif (category == "1๊ฐ ๊ธฐ๋ฅ์ง์คํ"):
|
126 |
+
return """
|
127 |
+
#๋ธ๋ก๊ทธ ํ
์คํธ ์์ฑ ๊ท์น(1๊ฐ ๊ธฐ๋ฅ์ง์คํ)
|
128 |
+
"""
|
129 |
+
|
130 |
def get_style_prompt(style):
|
131 |
prompts = {
|
132 |
"์น๊ทผํ": """
|
|
|
304 |
gr.Markdown(f"# {title}")
|
305 |
|
306 |
gr.Markdown("### 1๋จ๊ณ: ํฌ์คํ
์นดํ
๊ณ ๋ฆฌ๋ฅผ ์ง์ ํด์ฃผ์ธ์", elem_id="step-title")
|
307 |
+
category = gr.Radio(choices=["๊ณ ๊ฐ๋ฐ์ํ","1๊ฐ ๊ธฐ๋ฅ์ง์คํ"], label="ํฌ์คํ
์นดํ
๊ณ ๋ฆฌ", value="๊ณ ๊ฐ๋ฐ์ํ")
|
308 |
|
309 |
gr.Markdown("---\n\n")
|
310 |
|