820nam commited on
Commit
12cb09e
Β·
verified Β·
1 Parent(s): 40b493d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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 λͺ¨λΈ λ‘œλ“œ