Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -231,6 +231,9 @@ def 사주_분석(년주, 월주, 일주, 시주):
|
|
231 |
return html_result
|
232 |
|
233 |
|
|
|
|
|
|
|
234 |
with gr.Blocks() as demo:
|
235 |
with gr.Tab("AI 사주 운세 분석"):
|
236 |
solYear = gr.Textbox(label="생년(예: 1990)")
|
@@ -251,13 +254,15 @@ with gr.Blocks() as demo:
|
|
251 |
with gr.Tab("나의 성격과 특징 분석"):
|
252 |
OPENAI_API_KEY_input = gr.Textbox(label="OpenAI API 키", placeholder="여기에 OpenAI API 키를 입력하세요")
|
253 |
character_output = gr.Textbox(label="성격과 특징")
|
|
|
|
|
|
|
|
|
254 |
analyze_button = gr.Button("분석하기")
|
255 |
analyze_button.click(fn=analyze_character, inputs=[lunIljin_state, OPENAI_API_KEY_input], outputs=character_output)
|
|
|
|
|
256 |
|
257 |
-
|
258 |
-
with gr.Tab("유명인"):
|
259 |
-
celebrity_input = gr.Textbox(label="유명인 이름", placeholder="여기에 유명인의 이름을 입력하세요")
|
260 |
-
celebrity_output = gr.HTML() # 유명인 분석 결과를 출력할 HTML 컴포넌트
|
261 |
|
262 |
|
263 |
demo.launch()
|
|
|
231 |
return html_result
|
232 |
|
233 |
|
234 |
+
def analyze_character(lunIljin_state, OPENAI_API_KEY):
|
235 |
+
# 여기에 성격과 특징을 분석하는 함수의 내용을 구현하세요.
|
236 |
+
pass
|
237 |
with gr.Blocks() as demo:
|
238 |
with gr.Tab("AI 사주 운세 분석"):
|
239 |
solYear = gr.Textbox(label="생년(예: 1990)")
|
|
|
254 |
with gr.Tab("나의 성격과 특징 분석"):
|
255 |
OPENAI_API_KEY_input = gr.Textbox(label="OpenAI API 키", placeholder="여기에 OpenAI API 키를 입력하세요")
|
256 |
character_output = gr.Textbox(label="성격과 특징")
|
257 |
+
|
258 |
+
celebrity_input = gr.Textbox(label="유명인 이름")
|
259 |
+
celebrity_output = gr.HTML() # 유명인 분석 결과를 출력할 HTML 컴포넌트
|
260 |
+
|
261 |
analyze_button = gr.Button("분석하기")
|
262 |
analyze_button.click(fn=analyze_character, inputs=[lunIljin_state, OPENAI_API_KEY_input], outputs=character_output)
|
263 |
+
|
264 |
+
# 유명인 분석을 같은 탭에 추가
|
265 |
|
|
|
|
|
|
|
|
|
266 |
|
267 |
|
268 |
demo.launch()
|