Update app.py
Browse files
app.py
CHANGED
@@ -92,6 +92,7 @@ st.markdown("### λ€μ΄λ² λ΄μ€ λ°μ΄ν°λ₯Ό μ€μκ°μΌλ‘ μμ§νκ³ μ
|
|
92 |
# κ²μ ν€μλ μ
λ ₯
|
93 |
query = st.text_input("κ²μ ν€μλλ₯Ό μ
λ ₯νμΈμ", value="μ μΉ")
|
94 |
|
|
|
95 |
# λΆμ μμ λ²νΌ ν΄λ¦ μ λμ
|
96 |
# λΆμ μμ λ²νΌ ν΄λ¦ μ λμ
|
97 |
if st.button("λΆμ μμ"):
|
@@ -103,8 +104,8 @@ if st.button("λΆμ μμ"):
|
|
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 λͺ¨λΈ λ‘λ
|
|
|
92 |
# κ²μ ν€μλ μ
λ ₯
|
93 |
query = st.text_input("κ²μ ν€μλλ₯Ό μ
λ ₯νμΈμ", value="μ μΉ")
|
94 |
|
95 |
+
# λΆμ μμ λ²νΌ ν΄λ¦ μ λμ
|
96 |
# λΆμ μμ λ²νΌ ν΄λ¦ μ λμ
|
97 |
# λΆμ μμ λ²νΌ ν΄λ¦ μ λμ
|
98 |
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 |
|
111 |
# Hugging Face λͺ¨λΈ λ‘λ
|