Update app.py
Browse files
app.py
CHANGED
@@ -82,7 +82,7 @@ def search_news(keyword, country):
|
|
82 |
'dateRestrict': 'd1', # 최근 1일 내 결과만
|
83 |
'lr': 'lang_en', # 영어 결과만
|
84 |
'sort': 'date', # 날짜순 정렬
|
85 |
-
'num':
|
86 |
'siteSearch': 'news.google.com', # Google News로 제한
|
87 |
}
|
88 |
|
@@ -119,5 +119,5 @@ iface = gr.Interface(
|
|
119 |
description="Search for news articles from the last 24 hours using Google Custom Search API."
|
120 |
)
|
121 |
|
122 |
-
# 애플리케이션 실행
|
123 |
-
iface.launch(
|
|
|
82 |
'dateRestrict': 'd1', # 최근 1일 내 결과만
|
83 |
'lr': 'lang_en', # 영어 결과만
|
84 |
'sort': 'date', # 날짜순 정렬
|
85 |
+
'num': 10, # 최대 10개 결과
|
86 |
'siteSearch': 'news.google.com', # Google News로 제한
|
87 |
}
|
88 |
|
|
|
119 |
description="Search for news articles from the last 24 hours using Google Custom Search API."
|
120 |
)
|
121 |
|
122 |
+
# 애플리케이션 실행
|
123 |
+
iface.launch()
|