Update app.py
Browse files
app.py
CHANGED
|
@@ -58,19 +58,20 @@ examples = [
|
|
| 58 |
]
|
| 59 |
|
| 60 |
css = """
|
|
|
|
| 61 |
#col-container {
|
| 62 |
margin: 0 auto;
|
| 63 |
max-width: 640px;
|
| 64 |
font-family: 'Arial', sans-serif;
|
| 65 |
color: #333;
|
| 66 |
-
background-color: #
|
| 67 |
border-radius: 15px;
|
| 68 |
padding: 20px;
|
| 69 |
}
|
| 70 |
|
| 71 |
#header {
|
| 72 |
text-align: center;
|
| 73 |
-
color: #1f5f99;
|
| 74 |
}
|
| 75 |
|
| 76 |
#title {
|
|
@@ -108,11 +109,40 @@ css = """
|
|
| 108 |
font-size: 16px;
|
| 109 |
line-height: 1.6;
|
| 110 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
"""
|
| 112 |
|
| 113 |
with gr.Blocks(css=css) as demo:
|
| 114 |
with gr.Column(elem_id="col-container"):
|
| 115 |
-
gr.Markdown("<div id='header'><h1 id='title'>
|
| 116 |
|
| 117 |
with gr.Row():
|
| 118 |
prompt = gr.Text(
|
|
|
|
| 58 |
]
|
| 59 |
|
| 60 |
css = """
|
| 61 |
+
/* General Styles */
|
| 62 |
#col-container {
|
| 63 |
margin: 0 auto;
|
| 64 |
max-width: 640px;
|
| 65 |
font-family: 'Arial', sans-serif;
|
| 66 |
color: #333;
|
| 67 |
+
background-color: #f0f4f8; /* Light gray background for better contrast */
|
| 68 |
border-radius: 15px;
|
| 69 |
padding: 20px;
|
| 70 |
}
|
| 71 |
|
| 72 |
#header {
|
| 73 |
text-align: center;
|
| 74 |
+
color: #1f5f99; /* Veshup Blue */
|
| 75 |
}
|
| 76 |
|
| 77 |
#title {
|
|
|
|
| 109 |
font-size: 16px;
|
| 110 |
line-height: 1.6;
|
| 111 |
}
|
| 112 |
+
|
| 113 |
+
/* Dark Mode adjustments for browser default theme */
|
| 114 |
+
@media (prefers-color-scheme: dark) {
|
| 115 |
+
#col-container {
|
| 116 |
+
background-color: #2e2e2e; /* Dark background for dark mode */
|
| 117 |
+
color: #e0e0e0; /* Light text for dark mode */
|
| 118 |
+
}
|
| 119 |
+
|
| 120 |
+
#header {
|
| 121 |
+
color: #a5c4f6; /* Lighter blue for dark mode */
|
| 122 |
+
}
|
| 123 |
+
|
| 124 |
+
.gradio-button {
|
| 125 |
+
background-color: #4f89b0;
|
| 126 |
+
}
|
| 127 |
+
|
| 128 |
+
.gradio-button:hover {
|
| 129 |
+
background-color: #3a6a8b;
|
| 130 |
+
}
|
| 131 |
+
|
| 132 |
+
.gradio-slider,
|
| 133 |
+
.gradio-checkbox {
|
| 134 |
+
background-color: #444; /* Darker elements in dark mode */
|
| 135 |
+
}
|
| 136 |
+
|
| 137 |
+
.gradio-markdown {
|
| 138 |
+
color: #d1d1d1; /* Lighter text for markdown */
|
| 139 |
+
}
|
| 140 |
+
}
|
| 141 |
"""
|
| 142 |
|
| 143 |
with gr.Blocks(css=css) as demo:
|
| 144 |
with gr.Column(elem_id="col-container"):
|
| 145 |
+
gr.Markdown("<div id='header'><h1 id='title'>Veginator: Veshup's Image Generation AI</h1><p id='subtitle'>Create stunning images with just a prompt. Powered by cutting-edge AI technology.</p></div>")
|
| 146 |
|
| 147 |
with gr.Row():
|
| 148 |
prompt = gr.Text(
|