Download app.py from jua76/AI_Test: direct link, hf CLI and curl.
- Browser
- Download file 1.27 kB
-
https://huggingface.co/spaces/jua76/AI_Test/resolve/main/app.py
- Command line
-
hf download hf://spaces/jua76/AI_Test/app.py
-
curl -L -o app.py https://huggingface.co/spaces/jua76/AI_Test/resolve/main/app.py
1.27 kB
| import streamlit as st | |
| import os | |
| st.title("μλ ~ 1111111streamlit κ°λ° ν΄λ³΄κΈ° ") | |
| txt='' | |
| for i in os.listdir(os.getcwd()) : | |
| txt +=i | |
| st.markdown(txt) | |
| st.code(""" | |
| XXXXXXX | |
| """) | |
| st.caption("caption κΈ°λ₯μ μΈμ©κ΅¬λ, κ°μ£Όλ±μ λ£μ λ μ¬μ©νκΈ° μ’μ΅λλ€.") | |
| name = st.text_input("text_inputμ κΈ°λ₯μ μ¬μ©νμ¬, μ¬λμ μ΄λ¦, μ°λ½μ² λ± κ°μ’ μ¬μ©μ μ λ ₯μ λ°μλ³Ό μ μμ΅λλ€.",placeholder="νκΈΈλ") | |
| if st.button('μ λ ₯'): | |
| with open(os.getcwd() + '/new_file.txt', 'a') as f: | |
| f.write(f'{name}λ, νμν©λλ€.') | |
| st.write(f'{name}λ, νμν©λλ€.') | |
| # input widget μ€μ΅ | |
| uploaded_file = st.file_uploader("Choose a csv file") | |
| if uploaded_file: | |
| st.write("νμΌ μ΄λ¦: ",uploaded_file.name) | |
| # μ νλ°μ€ widget | |
| option = st.selectbox( | |
| 'How would you like to be contacted?', | |
| ('Email', 'Home phone', 'Mobile phone')) | |
| st.write('You selected:', option) | |
| with st.sidebar: | |
| add_selectbox = st.selectbox( | |
| "How would you like to be contacted? ", | |
| ("Email", "Home phone", "Mobile phone") | |
| ) | |
| add_radio = st.radio( | |
| "Choose a shipping method", | |
| ("Standard (5-15 days)", "Express (2-5 days)") | |
| ) | |
| st.write(add_radio) |