import gradio as gr # Define custom CSS for better styling custom_css = """ .gradio-container { font-family: 'Roboto', sans-serif; } .main-header { text-align: center; color: #4a4a4a; margin-bottom: 2rem; } .tab-header { font-size: 1.2rem; font-weight: bold; margin-bottom: 1rem; } .custom-chatbot { border-radius: 10px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); } .custom-button { background-color: #3498db; color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; transition: background-color 0.3s ease; } .custom-button:hover { background-color: #2980b9; } """ # Define Gradio theme theme = "NeoPy/Soft" with gr.Blocks() as DiffuseCraft: gr.HTML("") with gr.Blocks() as mod: gr.HTML("") with gr.Blocks() as votepurchase: gr.HTML("") # Main application block with gr.Blocks(theme=theme, title="Ultimate Stable Diffusion") as demo: gr.Label("# 🚀 Ultimate Stable Diffusion") gr.TabbedInterface( [DiffuseCraft, mod, votepurchase], ['🧩 DiffuseCraft', '🧩 DiffuseCraft mod', '🧩 Votepurchase Multiple Model'] ) demo.queue(max_size=300) demo.launch()