Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ import os
|
|
| 5 |
import sys
|
| 6 |
import json
|
| 7 |
|
| 8 |
-
|
| 9 |
|
| 10 |
def exception_handler(exception_type, exception, traceback):
|
| 11 |
print(f"{exception_type.__name__}: {exception}")
|
|
@@ -363,7 +363,7 @@ with gr.Blocks() as demo:
|
|
| 363 |
solMonth2 = gr.Textbox(label="์์(์: 01)")
|
| 364 |
solDay2 = gr.Textbox(label="์์ผ(์: 31)")
|
| 365 |
solHour2 = gr.Textbox(label="์์(์์: 1030)", placeholder="์๊ฐ์ 24์๊ฐ ํ์์ผ๋ก ์
๋ ฅํ์ธ์ (์: 2230)")
|
| 366 |
-
|
| 367 |
|
| 368 |
output2 = gr.JSON(label="๊ฒฐ๊ณผ")
|
| 369 |
analysis_result = gr.HTML() # ์ฌ์ฃผ ๋ถ์ ๊ฒฐ๊ณผ๋ฅผ ์ถ๋ ฅํ HTML ์ปดํฌ๋ํธ
|
|
@@ -372,7 +372,7 @@ with gr.Blocks() as demo:
|
|
| 372 |
|
| 373 |
get_lunar_info_btn.click(
|
| 374 |
fn=get_lunar_info_for_two_people,
|
| 375 |
-
inputs=[solYear, solMonth, solDay, solHour, solYear2, solMonth2, solDay2, solHour2],
|
| 376 |
outputs=[output1, lunIljin_state, analysis_result, output2, lunIljin_state, analysis_result, analysis_result]
|
| 377 |
)
|
| 378 |
|
|
|
|
| 5 |
import sys
|
| 6 |
import json
|
| 7 |
|
| 8 |
+
|
| 9 |
|
| 10 |
def exception_handler(exception_type, exception, traceback):
|
| 11 |
print(f"{exception_type.__name__}: {exception}")
|
|
|
|
| 363 |
solMonth2 = gr.Textbox(label="์์(์: 01)")
|
| 364 |
solDay2 = gr.Textbox(label="์์ผ(์: 31)")
|
| 365 |
solHour2 = gr.Textbox(label="์์(์์: 1030)", placeholder="์๊ฐ์ 24์๊ฐ ํ์์ผ๋ก ์
๋ ฅํ์ธ์ (์: 2230)")
|
| 366 |
+
OPENAI_API_KEY = gr.Textbox(label="OpenAI API ํค", placeholder="์ฌ๊ธฐ์ OpenAI API ํค๋ฅผ ์
๋ ฅํ์ธ์")
|
| 367 |
|
| 368 |
output2 = gr.JSON(label="๊ฒฐ๊ณผ")
|
| 369 |
analysis_result = gr.HTML() # ์ฌ์ฃผ ๋ถ์ ๊ฒฐ๊ณผ๋ฅผ ์ถ๋ ฅํ HTML ์ปดํฌ๋ํธ
|
|
|
|
| 372 |
|
| 373 |
get_lunar_info_btn.click(
|
| 374 |
fn=get_lunar_info_for_two_people,
|
| 375 |
+
inputs=[solYear, solMonth, solDay, solHour, solYear2, solMonth2, solDay2, solHour2, OPENAI_API_KEY],
|
| 376 |
outputs=[output1, lunIljin_state, analysis_result, output2, lunIljin_state, analysis_result, analysis_result]
|
| 377 |
)
|
| 378 |
|