streamlit์ด๋ !
ํ์ด์ฌ์์ ์ ๊ณตํ๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ก ์น์ฑ์ ์ฝ๊ฒ ์ ์ํ ์ ์๋ค
Streamlit Docs
Join the community Streamlit is more than just a way to make data apps, it's also a community of creators that share their apps and ideas and help each other make their work better. Please come join us on the community forum. We love to hear your questions
docs.streamlit.io
streamlit์ docs !
์ฐ์ streamlit ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ๋ค์ด๋ก๋ํ๋ค
pip install streamlit
์๋ ๋ช ๋ น์ด๋ฅผ ํตํด ์ ์ค์น๋์๋์ง ํ์ธํ ์ ์๋ค
streamlit hello
์ด๋ฉ์ผ์ ์ ๋ ฅํ๋ฉด !
์ด๋ ๊ฒ ์๋ก์ด ์ฐฝ์ด ๋จ๋ ๊ฒ์ ํ์ธํ ์ ์๋ค
๊ฐ๋จํ๊ฒ ์คํ์ํค๊ธฐ ์ํด ์๋ ์ฝ๋๋ฅผ ์ ๋ ฅ ํ, ๋ช ๋ น์ด๋ฅผ ํตํด ์ฝ๋๋ฅผ ์คํ์ํจ๋ค
import streamlit as st
st.title('Hello World!')
streamlit run ํ์ผ๋ช
.py
์ด๋ ๊ฒ ๊ฐ๋จํ ์น์ฑ์ ์ ์ํ ์ ์๋ค
์ด์ธ์๋ docs๋ฅผ ์ฝ์ด๋ณด๋ฉด st.title, st.write, st.checkbox, st.selectbox ๋ฑ ๋ค์ํ ๊ธฐ๋ฅ๋ค์ ์ฌ์ฉํ ์ ์๋ค
์ฌ์ค ์ง๊ธ ์งํํ๋ ค๋ ํ๋ก์ ํธ์์ ๋ง๋ API๋ฅผ ์ฌ์ฉํ ๊ฒฐ๊ณผ๋ฌผ์ ๋ณด์ฌ์ฃผ๊ธฐ ์ํด ๊ฐ๋จํ ์น์ด๋ ์ฑ์ด ํ์ํด์ streamlit์ ์ฌ์ฉํด๋ณด๊ฒ ๋์๋๋ฐ ๊ธฐ๋ณธ ์ฌ์ฉ๋ฒ์ ์์ฃผ ๊ฐ๋จํ ๊ฒ ๊ฐ๋ค!
ํ์ํ ๋ฐ์ดํฐ๋ฅผ ๊ฐ์ ธ์ค๊ณ ๋ฟ๋ฆฌ๊ฑฐ๋ DB ์ฐ๊ฒฐ ๋ฑ๋ฑ์ ๊ฒฝ์ฐ, ์๋ฐ์คํฌ๋ฆฝํธ๋ง ์ฌ์ฉํด๋ด์ ์ง๊ธ์ ์ ๋ชจ๋ฅด๊ฒ ์ง๋ง ์ด์ฐ์ ์ฐ ํ ์ ์์ง ์์๊น ?!
's t u d y . . ๐ง > ์ด๊ฒ์ ๊ฒ' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[v-world] ์๋, ๊ฒฝ๋ ๋ฐ v-world ์ขํ ์ถ์ถ (0) | 2023.07.30 |
---|---|
๊ตฌ๊ธ๋งต์์ ์๋ ๊ฒฝ๋ ์ถ์ถํ๊ธฐ (0) | 2023.07.30 |
[chatGPT] chatGPT API ์ฌ์ฉํ๊ธฐ ๐ซง (0) | 2023.04.14 |
[์ถ์ฒ ์์คํ ] ๋ฉ๋ด ์ถ์ฒ ์์คํ (3) (0) | 2023.04.11 |
[์ถ์ฒ ์์คํ ] ๋ฉ๋ด ์ถ์ฒ ์์คํ (2) (0) | 2023.03.28 |