Update app.py
Browse files
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
|
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
|
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", # λͺ¨λΈ μ΄λ¦ νμΈ νμ
|