fizzarif7 commited on
Commit
a5168ba
Β·
verified Β·
1 Parent(s): d68a4a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +86 -1
app.py CHANGED
@@ -183,7 +183,92 @@ Only provide the raw values, no headers.
183
  # -------------------- UI --------------------
184
 
185
 
186
- with gr.Blocks(title="Comic Generator", css=".gradio-container { box-shadow: 0 2px 12px rgba(0,0,0,0.05); border-radius: 12px; }") as demo:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
187
  gr.Markdown("## 🎬 AI Scene-by-Scene Story Creator")
188
  gr.Markdown("Describe your story one scene at a time, with AI-generated images, summaries, and explanations.")
189
 
 
183
  # -------------------- UI --------------------
184
 
185
 
186
+ with gr.Blocks(
187
+ title="Comic Generator",
188
+ css="""
189
+ body {
190
+ background: #f2f6fa;
191
+ }
192
+ .gradio-container {
193
+ box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
194
+ border-radius: 16px;
195
+ padding: 24px;
196
+ background: #ffffff;
197
+ font-family: 'Segoe UI', sans-serif;
198
+ }
199
+
200
+ .gr-button {
201
+ border-radius: 8px;
202
+ font-weight: 600;
203
+ transition: 0.3s all ease-in-out;
204
+ }
205
+
206
+ /* Buttons with different colors */
207
+ button:has-text("βž• Generate This Scene") {
208
+ background-color: #007acc;
209
+ color: white;
210
+ }
211
+ button:has-text("πŸ€– Let AI Write This One") {
212
+ background-color: #34495e;
213
+ color: white;
214
+ }
215
+ button:has-text("πŸ”„ Recreate This Scene") {
216
+ background-color: #5dade2;
217
+ color: white;
218
+ }
219
+ button:has-text("⏭️ Next Scene") {
220
+ background-color: #85929e;
221
+ color: white;
222
+ }
223
+ button:has-text("βœ… Finalize Story & Export") {
224
+ background-color: #2e86c1;
225
+ color: white;
226
+ }
227
+ button:has-text("πŸ”Š Read Aloud") {
228
+ background-color: #aab7b8;
229
+ color: white;
230
+ }
231
+
232
+ /* Sections */
233
+ .gr-accordion {
234
+ background-color: #e8f1f9;
235
+ border: 1px solid #d6eaf8;
236
+ border-radius: 10px;
237
+ padding: 8px;
238
+ }
239
+
240
+ .gr-markdown h2 {
241
+ color: #2e4053;
242
+ }
243
+
244
+ .gr-textbox textarea,
245
+ .gr-number input,
246
+ .gr-dropdown select {
247
+ border: 1px solid #d0d3d4;
248
+ border-radius: 6px;
249
+ }
250
+
251
+ .gr-image {
252
+ border: 1px solid #d6eaf8;
253
+ background-color: #f8f9f9;
254
+ border-radius: 12px;
255
+ padding: 8px;
256
+ }
257
+
258
+ .gr-audio {
259
+ background-color: #ecf0f1;
260
+ border-radius: 8px;
261
+ padding: 10px;
262
+ }
263
+
264
+ .gr-file {
265
+ background-color: #f7f9f9;
266
+ border: 1px dashed #bfc9ca;
267
+ border-radius: 10px;
268
+ padding: 10px;
269
+ }
270
+ """
271
+ ) as demo:
272
  gr.Markdown("## 🎬 AI Scene-by-Scene Story Creator")
273
  gr.Markdown("Describe your story one scene at a time, with AI-generated images, summaries, and explanations.")
274