Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -167,7 +167,7 @@ def analyze_character(lunIljin, OPENAI_API_KEY):
|
|
167 |
if response.status_code == 200:
|
168 |
data = response.json()
|
169 |
# λνν API μλ΅μμ μ μ ν λ©μμ§ μΆμΆ
|
170 |
-
return data["choices"][0]["message"]["content"], get_famous_people(lunIljin)
|
171 |
else:
|
172 |
# μ€λ₯ λ©μμ§ κ°μ
|
173 |
return f"μ€λ₯κ° λ°μνμ΅λλ€. μν μ½λ: {response.status_code}, λ©μμ§: {response.json().get('error', {}).get('message', 'Unknown error')}"
|
|
|
167 |
if response.status_code == 200:
|
168 |
data = response.json()
|
169 |
# λνν API μλ΅μμ μ μ ν λ©μμ§ μΆμΆ
|
170 |
+
return [data["choices"][0]["message"]["content"], get_famous_people(lunIljin)]
|
171 |
else:
|
172 |
# μ€λ₯ λ©μμ§ κ°μ
|
173 |
return f"μ€λ₯κ° λ°μνμ΅λλ€. μν μ½λ: {response.status_code}, λ©μμ§: {response.json().get('error', {}).get('message', 'Unknown error')}"
|