Update app.py
Browse files
app.py
CHANGED
@@ -160,7 +160,7 @@ def analyze_2024(lunIljin, OPENAI_API_KEY):
|
|
160 |
"content": "๋น์ ์ ์ฌ์ฃผ ํ์์ ๋ํด ์ค๋ช
ํ๋ ์ฑ๋ด์
๋๋ค."
|
161 |
}, {
|
162 |
"role": "user",
|
163 |
-
"content": f"์ผ์ฃผ '{lunIljin}'์ ๋ํด,
|
164 |
}],
|
165 |
}
|
166 |
headers = {
|
@@ -321,7 +321,7 @@ button:hover {
|
|
321 |
with gr.Blocks(css=css) as demo:
|
322 |
gr.Markdown("# AI ์ฌ์ฃผ ์ด์ธ ๋ถ์", elem_id="title")
|
323 |
gr.Markdown("### ์๋ ฅ ๊ธฐ์ค ์๋
,์์,์์ผ,์์๋ฅผ ์์๋๋ก ์
๋ ฅํ๊ณ '๋ถ์ํ๊ธฐ' ๋ฒํผ์ ํด๋ฆญํ์ธ์. ๊ฐ ํญ์์๋ ๋ณธ์ธ์ OpenAI APIํค๋ฅผ ์
๋ ฅํ๊ณ '๋ถ์ํ๊ธฐ' ๋ฒํผ์ ๋๋ฅด๋ฉด ์์ธ ์ ๋ณด๊ฐ ์ถ๋ ฅ๋ฉ๋๋ค. ", elem_id="description1")
|
324 |
-
gr.Markdown("###
|
325 |
|
326 |
with gr.Tab("๊ธฐ๋ณธ ์ ๋ณด ์
๋ ฅ ๋ฐ ์์ฝ"):
|
327 |
solYear = gr.Textbox(label="์๋
(์: 1990)")
|
@@ -347,7 +347,7 @@ with gr.Blocks(css=css) as demo:
|
|
347 |
|
348 |
with gr.Tab("2024๋
๋์ ์ ๋
์ด์ธ"):
|
349 |
OPENAI_API_KEY_input = gr.Textbox(label="OpenAI API ํค", placeholder="์ฌ๊ธฐ์ OpenAI API ํค๋ฅผ ์
๋ ฅํ์ธ์")
|
350 |
-
newyear_output = gr.Textbox(label="
|
351 |
analyze_button = gr.Button("๋ถ์ํ๊ธฐ")
|
352 |
analyze_button.click(fn=analyze_2024, inputs=[lunIljin_state, OPENAI_API_KEY_input], outputs=newyear_output)
|
353 |
|
|
|
160 |
"content": "๋น์ ์ ์ฌ์ฃผ ํ์์ ๋ํด ์ค๋ช
ํ๋ ์ฑ๋ด์
๋๋ค."
|
161 |
}, {
|
162 |
"role": "user",
|
163 |
+
"content": f"์ผ์ฃผ '{lunIljin}'์ ๋ํด, 2025๋
์ '์์ฌ'๋
์ด๋ค. 2024๋
'์์ฌ'๋
์ ๋
์ด์ธ์ ๋ํด์ ์
๋ ฅ๋ ์ผ์ฃผ์ ๊ด๋ จํ์ฌ ์์ธํ ์ค๋ช
ํด์ฃผ์ธ์."
|
164 |
}],
|
165 |
}
|
166 |
headers = {
|
|
|
321 |
with gr.Blocks(css=css) as demo:
|
322 |
gr.Markdown("# AI ์ฌ์ฃผ ์ด์ธ ๋ถ์", elem_id="title")
|
323 |
gr.Markdown("### ์๋ ฅ ๊ธฐ์ค ์๋
,์์,์์ผ,์์๋ฅผ ์์๋๋ก ์
๋ ฅํ๊ณ '๋ถ์ํ๊ธฐ' ๋ฒํผ์ ํด๋ฆญํ์ธ์. ๊ฐ ํญ์์๋ ๋ณธ์ธ์ OpenAI APIํค๋ฅผ ์
๋ ฅํ๊ณ '๋ถ์ํ๊ธฐ' ๋ฒํผ์ ๋๋ฅด๋ฉด ์์ธ ์ ๋ณด๊ฐ ์ถ๋ ฅ๋ฉ๋๋ค. ", elem_id="description1")
|
324 |
+
gr.Markdown("### ์ปค๋ฎค๋ํฐ: https://discord.gg/openfreeai", elem_id="description3")
|
325 |
|
326 |
with gr.Tab("๊ธฐ๋ณธ ์ ๋ณด ์
๋ ฅ ๋ฐ ์์ฝ"):
|
327 |
solYear = gr.Textbox(label="์๋
(์: 1990)")
|
|
|
347 |
|
348 |
with gr.Tab("2024๋
๋์ ์ ๋
์ด์ธ"):
|
349 |
OPENAI_API_KEY_input = gr.Textbox(label="OpenAI API ํค", placeholder="์ฌ๊ธฐ์ OpenAI API ํค๋ฅผ ์
๋ ฅํ์ธ์")
|
350 |
+
newyear_output = gr.Textbox(label="2025๋
์ ๋
์ด์ธ")
|
351 |
analyze_button = gr.Button("๋ถ์ํ๊ธฐ")
|
352 |
analyze_button.click(fn=analyze_2024, inputs=[lunIljin_state, OPENAI_API_KEY_input], outputs=newyear_output)
|
353 |
|