| import streamlit as st | |
| from components.home import show_home | |
| from components.voice_cloning import show_voice_cloning | |
| from components.speech_restoration import show_speech_restoration | |
| from components.historical_personalities import show_historical_personalities | |
| from utils.session_state import initialize_session_state | |
| def main(): | |
| st.set_page_config(page_title="MyVoice AI", page_icon="🎙️", layout="wide") | |
| initialize_session_state() | |
| st.sidebar.title("MyVoice AI") | |
| menu = ["Home", "Voice Cloning", "Speech Restoration", "Historical Personalities"] | |
| choice = st.sidebar.selectbox("Menu", menu) | |
| if choice == "Home": | |
| show_home() | |
| elif choice == "Voice Cloning": | |
| show_voice_cloning() | |
| elif choice == "Speech Restoration": | |
| show_speech_restoration() | |
| elif choice == "Historical Personalities": | |
| show_historical_personalities() | |
| st.sidebar.title("About") | |
| st.sidebar.info(""" | |
| MyVoice AI revolutionizes human communication and preserves meaningful connections | |
| through advanced audio processing technology. | |
| """) | |
| if __name__ == "__main__": | |
| main() |