Update app.py
Browse files
app.py
CHANGED
@@ -92,8 +92,6 @@ st.markdown("### λ€μ΄λ² λ΄μ€ λ°μ΄ν°λ₯Ό μ€μκ°μΌλ‘ μμ§νκ³ μ
|
|
92 |
# κ²μ ν€μλ μ
λ ₯
|
93 |
query = st.text_input("κ²μ ν€μλλ₯Ό μ
λ ₯νμΈμ", value="μ μΉ")
|
94 |
|
95 |
-
# λΆμ μμ λ²νΌ ν΄λ¦ μ λμ
|
96 |
-
# λΆμ μμ λ²νΌ ν΄λ¦ μ λμ
|
97 |
# λΆμ μμ λ²νΌ ν΄λ¦ μ λμ
|
98 |
if st.button("λΆμ μμ"):
|
99 |
with st.spinner("λ°μ΄ν°λ₯Ό λΆμ μ€μ
λλ€..."):
|
@@ -104,7 +102,7 @@ if st.button("λΆμ μμ"):
|
|
104 |
# λ°μ΄ν° μμ§λ μν νμΈ
|
105 |
if not news_data or not news_data.get("items"):
|
106 |
st.error("λ΄μ€ λ°μ΄ν°λ₯Ό λΆλ¬μ€λ λ° μ€ν¨νμ΅λλ€.")
|
107 |
-
return #
|
108 |
|
109 |
news_items = news_data["items"]
|
110 |
|
|
|
92 |
# κ²μ ν€μλ μ
λ ₯
|
93 |
query = st.text_input("κ²μ ν€μλλ₯Ό μ
λ ₯νμΈμ", value="μ μΉ")
|
94 |
|
|
|
|
|
95 |
# λΆμ μμ λ²νΌ ν΄λ¦ μ λμ
|
96 |
if st.button("λΆμ μμ"):
|
97 |
with st.spinner("λ°μ΄ν°λ₯Ό λΆμ μ€μ
λλ€..."):
|
|
|
102 |
# λ°μ΄ν° μμ§λ μν νμΈ
|
103 |
if not news_data or not news_data.get("items"):
|
104 |
st.error("λ΄μ€ λ°μ΄ν°λ₯Ό λΆλ¬μ€λ λ° μ€ν¨νμ΅λλ€.")
|
105 |
+
return # returnμ μμ νκ³ , μ€λ₯ λ©μμ§λ‘ λ체
|
106 |
|
107 |
news_items = news_data["items"]
|
108 |
|