import streamlit as st
import pandas as pd

uploaded_file = st.file_uploader("엑셀 파일 업로드", type=["xlsx"])
if uploaded_file is not None:
    df = pd.read_excel(uploaded_file)
    st.write(df)
import streamlit as st
from datetime import date

st.title("메모장 애플리케이션")

memo = st.text_area("메모 입력", height=200)
save_button = st.button("저장")

if save_button:
    with open("memo.txt", "w", encoding="UTF-8") as file:
        file.write(memo)
        st.success("메모가 정상적으로 저장되었습니다.")

st.subheader("저장된 메모")

try:
    with open("memo.txt", "r", encoding="UTF-8") as file:
        saved_memo = file.read()
        st.write(saved_memo)
except FileNotFoundError:
    st.info("저장된 메모가 없습니다.")