seawolf2357 commited on
Commit
94b1606
·
verified ·
1 Parent(s): b403d83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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': 100, # 최대 100개 결과
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(share=True)
 
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()