SUHHHH commited on
Commit
b5d1d70
ยท
verified ยท
1 Parent(s): d5b7da9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- content = f"{topic}์— ๋Œ€ํ•œ ์นดํ”ผ๋ผ์ดํŒ…์„ ์ž‘์„ฑํ•ด ์ฃผ์„ธ์š”. {system_message}๋ฅผ ์ฐธ๊ณ ํ•˜์—ฌ ์ž‘์„ฑํ•˜์„ธ์š”."
 
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}")