AIRider commited on
Commit
ace5c70
·
verified ·
1 Parent(s): 12216f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -53,7 +53,7 @@ def get_channel_stats(channel_id):
53
 
54
  if channel_response["items"]:
55
  channel = channel_response["items"][0]
56
- subscriber_count = int(channel["statistics"].get("subscriberCount"))
57
  else:
58
  subscriber_count = 0
59
 
@@ -167,10 +167,10 @@ iface = gr.Interface(
167
  fn=main,
168
  inputs=[
169
  gr.components.Textbox(label="검색 쿼리"),
170
- gr.components.Number(label="최대 결과 수"),
171
  gr.components.Dropdown(["1주일", "1개월", "3개월"], label="기간"),
172
  gr.components.Dropdown(["Video Ranking", "Title Analysis"], label="페이지"),
173
- gr.components.Number(label="클러스터 수")
174
  ],
175
  outputs=[
176
  gr.components.Dataframe(label="결과"),
 
53
 
54
  if channel_response["items"]:
55
  channel = channel_response["items"][0]
56
+ subscriber_count = int(channel["statistics"]["subscriberCount"])
57
  else:
58
  subscriber_count = 0
59
 
 
167
  fn=main,
168
  inputs=[
169
  gr.components.Textbox(label="검색 쿼리"),
170
+ gr.components.Number(label="최대 결과 수", value=5, precision=0, minimum=1, maximum=1000),
171
  gr.components.Dropdown(["1주일", "1개월", "3개월"], label="기간"),
172
  gr.components.Dropdown(["Video Ranking", "Title Analysis"], label="페이지"),
173
+ gr.components.Number(label="클러스터 수", value=5, precision=0, minimum=2, maximum=10)
174
  ],
175
  outputs=[
176
  gr.components.Dataframe(label="결과"),