seawolf2357 commited on
Commit
e16dfc5
Β·
verified Β·
1 Parent(s): f2c2482

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ def generate_keyword_from_text(input_text):
9
  try:
10
  # μ΅œμ‹  OpenAI APIλ₯Ό μ‚¬μš©ν•˜μ—¬ ν…μŠ€νŠΈ μ™„μ„± μš”μ²­
11
  response = openai.Completion.create(
12
- model="text-davinci-004", # μ‚¬μš© κ°€λŠ₯ν•œ GPT-3 λͺ¨λΈ
13
  prompt=f"λ‹€μŒ ν…μŠ€νŠΈμ— λŒ€ν•œ Pexels 검색을 μœ„ν•œ 영문 ν‚€μ›Œλ“œ 생성: '{input_text}'",
14
  temperature=0.5,
15
  max_tokens=10
 
9
  try:
10
  # μ΅œμ‹  OpenAI APIλ₯Ό μ‚¬μš©ν•˜μ—¬ ν…μŠ€νŠΈ μ™„μ„± μš”μ²­
11
  response = openai.Completion.create(
12
+ model="gpt-3.5-turbo", # μ‚¬μš© κ°€λŠ₯ν•œ GPT-3 λͺ¨λΈ
13
  prompt=f"λ‹€μŒ ν…μŠ€νŠΈμ— λŒ€ν•œ Pexels 검색을 μœ„ν•œ 영문 ν‚€μ›Œλ“œ 생성: '{input_text}'",
14
  temperature=0.5,
15
  max_tokens=10