Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ import matplotlib.font_manager as fm
|
|
| 6 |
from PIL import Image
|
| 7 |
|
| 8 |
# ν°νΈ μ€μ
|
| 9 |
-
font_path = r"
|
| 10 |
font_prop = fm.FontProperties(fname=font_path, size=12)
|
| 11 |
plt.rcParams['font.family'] = font_prop.get_name()
|
| 12 |
plt.rcParams['axes.unicode_minus'] = False
|
|
@@ -19,7 +19,7 @@ if page == "λͺ¨λ λμΆ λμ μμ 10κ°":
|
|
| 19 |
st.title("λͺ¨λ λμΆ λμ μμ 10κ°")
|
| 20 |
|
| 21 |
# μ΄λ―Έμ§ νμΌ κ²½λ‘
|
| 22 |
-
image_path = r'
|
| 23 |
|
| 24 |
# μ΄λ―Έμ§ μ
λ‘λ λ° νμ
|
| 25 |
st.image(image_path, caption="λͺ¨λ λμΆ λμ μμ 10κ°", use_column_width=True)
|
|
@@ -28,7 +28,7 @@ elif page == "μ°λ Ήλ λ° μ±λ³μ λ°λ₯Έ μμ 5κ° λμΆ λμ":
|
|
| 28 |
st.title("μ°λ Ήλ λ° μ±λ³μ λ°λ₯Έ μμ 5κ° λμΆ λμ")
|
| 29 |
|
| 30 |
# λ°μ΄ν° λ‘λ
|
| 31 |
-
file_path = r'
|
| 32 |
df = pd.read_excel(file_path, sheet_name=None)
|
| 33 |
df = pd.concat(df.values()) # λͺ¨λ μνΈ λ°μ΄ν°λ₯Ό κ²°ν©
|
| 34 |
|
|
@@ -66,7 +66,7 @@ elif page == "μ°λ Ήλ λ° μ±λ³μ λ°λ₯Έ μμ 3κ° μ₯λ₯΄":
|
|
| 66 |
st.title("μ°λ Ήλ λ° μ±λ³μ λ°λ₯Έ μμ 3κ° μ₯λ₯΄")
|
| 67 |
|
| 68 |
# λ°μ΄ν° λ‘λ
|
| 69 |
-
file_path = r'
|
| 70 |
df = pd.read_excel(file_path, sheet_name=None)
|
| 71 |
df = pd.concat(df.values()) # λͺ¨λ μνΈ λ°μ΄ν°λ₯Ό κ²°ν©
|
| 72 |
|
|
@@ -84,7 +84,7 @@ elif page == "μ°λ Ήλ λ° μ±λ³μ λ°λ₯Έ μμ 3κ° μ₯λ₯΄":
|
|
| 84 |
st.pyplot(fig)
|
| 85 |
|
| 86 |
# ννΈλ§΅ μ΄λ―Έμ§ νμΌ κ²½λ‘
|
| 87 |
-
heat_map_image_path = r'
|
| 88 |
|
| 89 |
# μ΄λ―Έμ§ μ
λ‘λ λ° νμ
|
| 90 |
st.image(heat_map_image_path, caption="μ°λ Ήλ λ° μ±λ³μ λ°λ₯Έ μ₯λ₯΄ μ νΈλ ννΈλ§΅", use_column_width=True)
|
|
|
|
| 6 |
from PIL import Image
|
| 7 |
|
| 8 |
# ν°νΈ μ€μ
|
| 9 |
+
font_path = r"H2GTRM.TTF"
|
| 10 |
font_prop = fm.FontProperties(fname=font_path, size=12)
|
| 11 |
plt.rcParams['font.family'] = font_prop.get_name()
|
| 12 |
plt.rcParams['axes.unicode_minus'] = False
|
|
|
|
| 19 |
st.title("λͺ¨λ λμΆ λμ μμ 10κ°")
|
| 20 |
|
| 21 |
# μ΄λ―Έμ§ νμΌ κ²½λ‘
|
| 22 |
+
image_path = r'top_books_plot_page-0001.jpg'
|
| 23 |
|
| 24 |
# μ΄λ―Έμ§ μ
λ‘λ λ° νμ
|
| 25 |
st.image(image_path, caption="λͺ¨λ λμΆ λμ μμ 10κ°", use_column_width=True)
|
|
|
|
| 28 |
st.title("μ°λ Ήλ λ° μ±λ³μ λ°λ₯Έ μμ 5κ° λμΆ λμ")
|
| 29 |
|
| 30 |
# λ°μ΄ν° λ‘λ
|
| 31 |
+
file_path = r'μμ_5_λμ.xlsx'
|
| 32 |
df = pd.read_excel(file_path, sheet_name=None)
|
| 33 |
df = pd.concat(df.values()) # λͺ¨λ μνΈ λ°μ΄ν°λ₯Ό κ²°ν©
|
| 34 |
|
|
|
|
| 66 |
st.title("μ°λ Ήλ λ° μ±λ³μ λ°λ₯Έ μμ 3κ° μ₯λ₯΄")
|
| 67 |
|
| 68 |
# λ°μ΄ν° λ‘λ
|
| 69 |
+
file_path = r'μμ_3_μ₯λ₯΄.xlsx'
|
| 70 |
df = pd.read_excel(file_path, sheet_name=None)
|
| 71 |
df = pd.concat(df.values()) # λͺ¨λ μνΈ λ°μ΄ν°λ₯Ό κ²°ν©
|
| 72 |
|
|
|
|
| 84 |
st.pyplot(fig)
|
| 85 |
|
| 86 |
# ννΈλ§΅ μ΄λ―Έμ§ νμΌ κ²½λ‘
|
| 87 |
+
heat_map_image_path = r'heat_map_page-0001.jpg'
|
| 88 |
|
| 89 |
# μ΄λ―Έμ§ μ
λ‘λ λ° νμ
|
| 90 |
st.image(heat_map_image_path, caption="μ°λ Ήλ λ° μ±λ³μ λ°λ₯Έ μ₯λ₯΄ μ νΈλ ννΈλ§΅", use_column_width=True)
|