import streamlit as st
import time
from PIL import Image
st.markdown("""
""", unsafe_allow_html=True)
#수정 요청 반영
def show_loading():
st.set_page_config(
page_title=" ",
layout="centered"
)
def show_loading():
st.markdown("""
""", unsafe_allow_html=True)
HOLES = '
' * 9
FILM_SIDES = f'{HOLES}
{HOLES}
'
STEPS = [
("자막을 영상에 입히는 중이에요", 1.5)
]
card = st.empty()
for i, (label, delay) in enumerate(STEPS):
pct = (i + 1) / len(STEPS)
pct_int = int(pct * 100)
card.markdown(f"""
{FILM_SIDES}
AI가 감정을 분석하고 자막을 생성하는 중이에요
{label} ... {pct_int}%
""", unsafe_allow_html=True)
time.sleep(delay)
#화면 전환 코드 추가
st.switch_page("pages/edit.py")