Spaces:
Sleeping
Sleeping
File size: 1,581 Bytes
9baf145 3c956ca 9baf145 3c956ca f8fe412 9baf145 3c956ca 9baf145 3c956ca 9baf145 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
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() |