Update app.py
Browse files
app.py
CHANGED
@@ -26,10 +26,11 @@ def call_api(model, content, system_message, max_tokens, temperature, top_p):
|
|
26 |
return response.choices[0].message.content
|
27 |
|
28 |
def generate_copywriting(model, topic, system_message, max_tokens, temperature, top_p):
|
29 |
-
|
|
|
30 |
return call_api(model, content, system_message, max_tokens, temperature, top_p)
|
31 |
|
32 |
-
title = "SNS ๋ง์ผํ
์นดํผ๋ผ์ดํ
์์ฑ๊ธฐ"
|
33 |
|
34 |
with gr.Blocks() as demo:
|
35 |
gr.Markdown(f"# {title}")
|
|
|
26 |
return response.choices[0].message.content
|
27 |
|
28 |
def generate_copywriting(model, topic, system_message, max_tokens, temperature, top_p):
|
29 |
+
# ๋ฐ๋์ ํ๊ธ๋ก ์์ฑํ๋๋ก ํ๋กฌํํธ๋ฅผ ๋ช
์
|
30 |
+
content = f"'{topic}'์ ๋ํ ์นดํผ๋ผ์ดํ
์ ์์ฑํ๋, ๋ฐ๋์ ํ๊ตญ์ด๋ก ์์ฑํ์ธ์. {system_message}๋ฅผ ์ฐธ๊ณ ํ์ฌ 10๊ฐ์ ์นดํผ๋ฅผ ์์ฑํ์ธ์."
|
31 |
return call_api(model, content, system_message, max_tokens, temperature, top_p)
|
32 |
|
33 |
+
title = "SNS ๋ง์ผํ
์นดํผ๋ผ์ดํ
์์ฑ๊ธฐ (ํ๊ตญ์ด ์ ์ฉ)"
|
34 |
|
35 |
with gr.Blocks() as demo:
|
36 |
gr.Markdown(f"# {title}")
|