Spaces:
Sleeping
Sleeping
| 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("<iframe src='https://r3gm-diffusecraft.hf.space' width='100%' height='2000px' style='border-radius: 8px;'></iframe>") | |
| with gr.Blocks() as mod: | |
| gr.HTML("<iframe src='https://john6666-diffusecraftmod.hf.space' width='100%' height='2000px' style='border-radius: 8px;'></iframe>") | |
| with gr.Blocks() as votepurchase: | |
| gr.HTML("<iframe src='https://john6666-votepurchase-multiple-model.hf.space' width='100%' height='2000px' style='border-radius: 8px;'></iframe>") | |
| # 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() |