kim368882 commited on
Commit
c42228e
β€’
1 Parent(s): 3c2b9f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -187,7 +187,7 @@ def get_famous_people(lunIljin):
187
  return famous_people.get(lunIljin[:2], "ν•΄λ‹Ή 일주에 λŒ€ν•œ 유λͺ…인 정보가 μ—†μŠ΅λ‹ˆλ‹€.")
188
 
189
 
190
- def analyze_character(lunIljin, OPENAI_API_KEY="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"):
191
  API_URL = "https://api.openai.com/v1/chat/completions"
192
  payload = {
193
  "model": "gpt-4-0125-preview", # λͺ¨λΈ 이름 확인 ν•„μš”
@@ -212,7 +212,7 @@ def analyze_character(lunIljin, OPENAI_API_KEY="sk-FIY8XdJm4zrEpW27NrRgT3BlbkFJX
212
  # 였λ₯˜ λ©”μ‹œμ§€ κ°œμ„ 
213
  return f"였λ₯˜κ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€. μƒνƒœ μ½”λ“œ: {response.status_code}, λ©”μ‹œμ§€: {response.json().get('error', {}).get('message', 'Unknown error')}", ""
214
 
215
- def analyze_character_two(lunIljin, lunIljin2, OPENAI_API_KEY="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"):
216
  API_URL = "https://api.openai.com/v1/chat/completions"
217
  payload = {
218
  "model": "gpt-4-0125-preview", # λͺ¨λΈ 이름 확인 ν•„μš”
 
187
  return famous_people.get(lunIljin[:2], "ν•΄λ‹Ή 일주에 λŒ€ν•œ 유λͺ…인 정보가 μ—†μŠ΅λ‹ˆλ‹€.")
188
 
189
 
190
+ def analyze_character(lunIljin, OPENAI_API_KEY):
191
  API_URL = "https://api.openai.com/v1/chat/completions"
192
  payload = {
193
  "model": "gpt-4-0125-preview", # λͺ¨λΈ 이름 확인 ν•„μš”
 
212
  # 였λ₯˜ λ©”μ‹œμ§€ κ°œμ„ 
213
  return f"였λ₯˜κ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€. μƒνƒœ μ½”λ“œ: {response.status_code}, λ©”μ‹œμ§€: {response.json().get('error', {}).get('message', 'Unknown error')}", ""
214
 
215
+ def analyze_character_two(lunIljin, lunIljin2, OPENAI_API_KEY):
216
  API_URL = "https://api.openai.com/v1/chat/completions"
217
  payload = {
218
  "model": "gpt-4-0125-preview", # λͺ¨λΈ 이름 확인 ν•„μš”