yoon-gu commited on
Commit
7c1249e
β€’
1 Parent(s): 7f645c3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -30,7 +30,7 @@ GEN_RANGE = {
30
 
31
  with gr.Blocks(title="λŒ€μΉ˜λ™ 포켓λͺ¬ 도감 생성기 πŸ™") as block:
32
  with gr.Row():
33
- gr.Markdown("# λŒ€μΉ˜λ™ 포켓λͺ¬ 도감 생성기 πŸ™")
34
  with gr.Row():
35
  generation = gr.Dropdown(
36
  [f"{k}μ„ΈλŒ€" for k in range(1, 10)] + ["λͺ¨λ“  μ„ΈλŒ€"], value="1μ„ΈλŒ€", label="πŸŒˆν¬μΌ“λͺ¬ μ„ΈλŒ€", info="μ›ν•˜λŠ” 포켓λͺ¬ μ„ΈλŒ€λ₯Ό μ„ νƒν•˜μ„Έμš”."
@@ -103,7 +103,7 @@ with gr.Blocks(title="λŒ€μΉ˜λ™ 포켓λͺ¬ 도감 생성기 πŸ™") as block:
103
 
104
  doc.build(story)
105
  df = pd.DataFrame(data_dict)
106
- analysis = df[['이름', 'νƒ€μž…']].groupby(by='νƒ€μž…').count().to_markdown().replace('이름', '개수')
107
  return df[['번호', '이름', 'νƒ€μž…']], filename, images, analysis
108
 
109
  button.click(write_pdf, [generation, poke_types], [df_view, download, gallery, report])
 
30
 
31
  with gr.Blocks(title="λŒ€μΉ˜λ™ 포켓λͺ¬ 도감 생성기 πŸ™") as block:
32
  with gr.Row():
33
+ gr.Markdown("# λŒ€μΉ˜λ™ 포켓λͺ¬ 도감 생성기 πŸ™\n- 포켓λͺ¬μ˜ μ„ΈλŒ€λ³„, νƒ€μž…λ³„λ‘œ 도감을 λ§Œλ“€μ–΄μ£ΌλŠ” κ³³μž…λ‹ˆλ‹€.\n- 자료의 μΆœμ²˜λŠ” http://pokemon.fandom.com μž…λ‹ˆλ‹€.")
34
  with gr.Row():
35
  generation = gr.Dropdown(
36
  [f"{k}μ„ΈλŒ€" for k in range(1, 10)] + ["λͺ¨λ“  μ„ΈλŒ€"], value="1μ„ΈλŒ€", label="πŸŒˆν¬μΌ“λͺ¬ μ„ΈλŒ€", info="μ›ν•˜λŠ” 포켓λͺ¬ μ„ΈλŒ€λ₯Ό μ„ νƒν•˜μ„Έμš”."
 
103
 
104
  doc.build(story)
105
  df = pd.DataFrame(data_dict)
106
+ analysis = df[['이름', 'νƒ€μž…']].groupby(by='νƒ€μž…').count().sort_values(by='이름', ascending=False).to_markdown().replace('이름', '개수')
107
  return df[['번호', '이름', 'νƒ€μž…']], filename, images, analysis
108
 
109
  button.click(write_pdf, [generation, poke_types], [df_view, download, gallery, report])