import streamlit as st # Set page configuration (only once in main.py) st.set_page_config(page_title="AI Generator App", page_icon="🎵", layout="wide") # Custom CSS to improve the appearance st.markdown(""" """, unsafe_allow_html=True) # Main page content st.markdown("

🎨 AI Music and Image Generator

", unsafe_allow_html=True) st.markdown("

Welcome to the AI Generator app! Use the navigation menu to switch between generating music or images based on text prompts.

", unsafe_allow_html=True) # Brief description of each section st.markdown("### Available Sections:") col1, col2 = st.columns(2) with col1: st.markdown("
🎵 Music Generator
", unsafe_allow_html=True) st.markdown("
Transform your ideas into music using AI.
", unsafe_allow_html=True) music = st.button("Generate Music") if music: st.switch_page("Music_Generator.py") with col2: st.markdown("
🖼️ Image Generator
", unsafe_allow_html=True) st.markdown("
Generate stunning images from your text descriptions.
", unsafe_allow_html=True) img = st.button("Generate Images") if img: st.switch_page("Image_Generator.py")