Update app.py
Browse files
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])
|