Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,8 +26,9 @@ st.write(''' ์ ๋ฌธ๊ฐ OOO์ ๋ฐ๋ฅด๋ฉด ~~~~~''')
|
|
| 26 |
|
| 27 |
|
| 28 |
# ์ฌ์ง ์ฝ์
|
| 29 |
-
st.image('photo1.
|
| 30 |
-
st.image('photo2.
|
|
|
|
| 31 |
|
| 32 |
# ๋ฐ์ดํฐ ๋ถ๋ฌ์ค๊ธฐ
|
| 33 |
df = pd.read_excel('data_traffic_accidents.xlsx', index_col=0)
|
|
@@ -56,14 +57,14 @@ st.image('network.png')
|
|
| 56 |
# ๊ทธ๋ํ html ๋ณด์ฌ์ฃผ๊ธฐ
|
| 57 |
st.write('''์ทจ์ฌํ์ ๊ตํต์ฌ๊ณ ์ฌ๊ณ ๊ฑด์์ ์ฌ๋ง์์ ๊ฐ์ ๊ด๊ณ๋ฅผ ๊ทธ๋ํ๋ก ํ์ํ๋ค ๋ถ์๊ฒฐ๊ณผ, ~~์ค๋ช
~~
|
| 58 |
๊ทธ๋ํ ๊ฐ ์ ์ ๋ง์ฐ์ค๋ฅผ ๋์ผ๋ฉด ์ง์ญ ์ ๋ณด๊ฐ ๋ํ๋๋ค''')
|
| 59 |
-
with open('
|
| 60 |
html_content1 = f.read()
|
| 61 |
st.components.v1.html(html_content1, height=500) # markdown๋ณด๋ค ๋ณต์กํ html ํ์ผ ์๋์ ๊ฐํจ
|
| 62 |
|
| 63 |
# ์ง๋ html ๋ณด์ฌ์ฃผ๊ธฐ
|
| 64 |
st.write('''์ทจ์ฌํ์ ์์ธ์ ์ฃผ์ ๋ํ์ ์์น์ ์ ๋ณด๋ฅผ ์ง๋์ ํ๊ธฐํด ๋ณด์๋ค. ๋ถ์๊ฒฐ๊ณผ, ~~์ค๋ช
~~
|
| 65 |
์ง๋ ์ ํ๊ธฐ ์ง์ ์ ๋ง์ฐ์ค๋ฅผ ๋์ผ๋ฉด ๊ด๋ จ ์ ๋ณด๊ฐ ๋ํ๋๋ค''')
|
| 66 |
-
with open('
|
| 67 |
html_content2 = f.read()
|
| 68 |
st.components.v1.html(html_content2, height=500)
|
| 69 |
|
|
|
|
| 26 |
|
| 27 |
|
| 28 |
# ์ฌ์ง ์ฝ์
|
| 29 |
+
st.image('photo1.jpeg', caption='๋ฌด์ธ์ ํฌ ์ฌ์ง')
|
| 30 |
+
st.image('photo2.jpeg', caption='๋งค์ฅ๋ด cctv')
|
| 31 |
+
st.image('photo3.jpeg', caption='์ถ์
์ธ์ฆ์ฅ์น')
|
| 32 |
|
| 33 |
# ๋ฐ์ดํฐ ๋ถ๋ฌ์ค๊ธฐ
|
| 34 |
df = pd.read_excel('data_traffic_accidents.xlsx', index_col=0)
|
|
|
|
| 57 |
# ๊ทธ๋ํ html ๋ณด์ฌ์ฃผ๊ธฐ
|
| 58 |
st.write('''์ทจ์ฌํ์ ๊ตํต์ฌ๊ณ ์ฌ๊ณ ๊ฑด์์ ์ฌ๋ง์์ ๊ฐ์ ๊ด๊ณ๋ฅผ ๊ทธ๋ํ๋ก ํ์ํ๋ค ๋ถ์๊ฒฐ๊ณผ, ~~์ค๋ช
~~
|
| 59 |
๊ทธ๋ํ ๊ฐ ์ ์ ๋ง์ฐ์ค๋ฅผ ๋์ผ๋ฉด ์ง์ญ ์ ๋ณด๊ฐ ๋ํ๋๋ค''')
|
| 60 |
+
with open('bokeh_plot.html', 'r', encoding='utf-8') as f:
|
| 61 |
html_content1 = f.read()
|
| 62 |
st.components.v1.html(html_content1, height=500) # markdown๋ณด๋ค ๋ณต์กํ html ํ์ผ ์๋์ ๊ฐํจ
|
| 63 |
|
| 64 |
# ์ง๋ html ๋ณด์ฌ์ฃผ๊ธฐ
|
| 65 |
st.write('''์ทจ์ฌํ์ ์์ธ์ ์ฃผ์ ๋ํ์ ์์น์ ์ ๋ณด๋ฅผ ์ง๋์ ํ๊ธฐํด ๋ณด์๋ค. ๋ถ์๊ฒฐ๊ณผ, ~~์ค๋ช
~~
|
| 66 |
์ง๋ ์ ํ๊ธฐ ์ง์ ์ ๋ง์ฐ์ค๋ฅผ ๋์ผ๋ฉด ๊ด๋ จ ์ ๋ณด๊ฐ ๋ํ๋๋ค''')
|
| 67 |
+
with open('folium_map.html', 'r', encoding='utf-8') as f:
|
| 68 |
html_content2 = f.read()
|
| 69 |
st.components.v1.html(html_content2, height=500)
|
| 70 |
|