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