fizzarif7 commited on
Commit
b2ce3c0
Β·
verified Β·
1 Parent(s): 6b78349

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -21
app.py CHANGED
@@ -203,7 +203,7 @@ Only provide the raw values, no headers.
203
  with gr.Blocks(
204
  title="Comic Creator", css="""
205
  body {
206
- background-color: #e5cce5; /* Light blue */
207
  }
208
 
209
  .gradio-container {
@@ -235,7 +235,7 @@ with gr.Blocks(
235
  #done-btn,
236
  #tts-btn,
237
  #recreate-scene-index {
238
- background-color: #cc99cc;
239
  color: white;
240
  border: 1px solid #000000;
241
  }
@@ -252,12 +252,6 @@ with gr.Blocks(
252
  gap: 10px;
253
  }
254
 
255
-
256
- #tts-btn {
257
- background-color: #ffffff;
258
- color: black;
259
- border: 1px solid #000000;
260
- }
261
 
262
  #generate-btn:hover,
263
  #ai-write-btn:hover,
@@ -265,38 +259,37 @@ with gr.Blocks(
265
  #reset-btn:hover,
266
  #done-btn:hover,
267
  #tts-btn:hover{
268
- background: #a64ca6 ;
269
  transform: scale(1.05);
270
  color: #000;
271
  cursor: pointer;
272
  }
273
 
274
-
275
 
276
  input, textarea, select {
277
  border-radius: 8px ;
278
- border: 1px solid #ccc;
279
  padding: 10px !important;
280
- background-color: #fff5fc;
281
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
282
  transition: all 0.2s ease-in-out;
283
  }
284
  input:focus, textarea:focus, select:focus {
285
- border-color: #ff80ab !important;
286
  box-shadow: 0 0 6px rgba(255, 105, 180, 0.3);
287
  outline: none;
288
  }
289
 
290
  /* πŸŽ† Scene Image Border */
291
  .gr-image img {
292
- border: 4px dashed #ffb6b9;
293
  border-radius: 16px;
294
  padding: 4px;
295
  }
296
 
297
  .gr-accordion {
298
  background-color: #d4a373;
299
- border: 1px solid #d6eaf8;
300
  border-radius: 12px;
301
  padding: 12px;
302
  margin-bottom: 12px;
@@ -327,8 +320,8 @@ with gr.Blocks(
327
  }
328
 
329
  #accordion {
330
- background: linear-gradient(to right, #f5f7fa, #c3cfe2);
331
- border: 2px solid #6c757d;
332
  border-radius: 12px;
333
  padding: 16px;
334
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
@@ -348,7 +341,7 @@ with gr.Blocks(
348
  }
349
  #output {
350
  background: #fff0f5;
351
- border: 2px dashed #d63384;
352
  border-radius: 14px;
353
  padding: 16px;
354
  font-size: 1.1rem;
@@ -401,7 +394,7 @@ with gr.Blocks(
401
  animation: bounce 2s infinite;
402
  }
403
  .gr-audio {
404
- border: 2px solid #ab47bc;
405
  background-color: #f3e5f5;
406
  border-radius: 16px;
407
  padding: 12px;
@@ -453,9 +446,9 @@ with gr.Blocks(
453
  summary_output = gr.Markdown(label="πŸ“ Scene Summary", elem_id = "output")
454
  explanation_output = gr.Textbox(label="πŸ“– Scene Explanation", lines=6,elem_id="output")
455
 
456
- with gr.Row(elem_classes="gr-audio"):
457
  tts_btn = gr.Button("πŸ”Š Read Aloud", elem_id="tts-btn")
458
- tts_audio = gr.Audio(label="Audio", autoplay=False)
459
 
460
  done_btn = gr.Button("βœ… Done", visible=False, elem_id="done-btn")
461
  txt_file = gr.File(label="πŸ“„ Explanations (.txt)", elem_classes="gr-file")
 
203
  with gr.Blocks(
204
  title="Comic Creator", css="""
205
  body {
206
+ background-color: #b2d8d8;
207
  }
208
 
209
  .gradio-container {
 
235
  #done-btn,
236
  #tts-btn,
237
  #recreate-scene-index {
238
+ background-color: #66b2b2;
239
  color: white;
240
  border: 1px solid #000000;
241
  }
 
252
  gap: 10px;
253
  }
254
 
 
 
 
 
 
 
255
 
256
  #generate-btn:hover,
257
  #ai-write-btn:hover,
 
259
  #reset-btn:hover,
260
  #done-btn:hover,
261
  #tts-btn:hover{
262
+ background: #008080 ;
263
  transform: scale(1.05);
264
  color: #000;
265
  cursor: pointer;
266
  }
267
 
 
268
 
269
  input, textarea, select {
270
  border-radius: 8px ;
271
+ border: 1px solid #004c4c;
272
  padding: 10px !important;
273
+ background-color: #d5f2ee;
274
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
275
  transition: all 0.2s ease-in-out;
276
  }
277
  input:focus, textarea:focus, select:focus {
278
+ border-color: #004c4c !important;
279
  box-shadow: 0 0 6px rgba(255, 105, 180, 0.3);
280
  outline: none;
281
  }
282
 
283
  /* πŸŽ† Scene Image Border */
284
  .gr-image img {
285
+ border: 4px dashed #004c4c;
286
  border-radius: 16px;
287
  padding: 4px;
288
  }
289
 
290
  .gr-accordion {
291
  background-color: #d4a373;
292
+ border: 1px solid #004c4c;
293
  border-radius: 12px;
294
  padding: 12px;
295
  margin-bottom: 12px;
 
320
  }
321
 
322
  #accordion {
323
+ background: linear-gradient(to right, #66b2b2, #008080);
324
+ border: 2px solid #004c4c;
325
  border-radius: 12px;
326
  padding: 16px;
327
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
 
341
  }
342
  #output {
343
  background: #fff0f5;
344
+ border: 2px dashed #004c4c;
345
  border-radius: 14px;
346
  padding: 16px;
347
  font-size: 1.1rem;
 
394
  animation: bounce 2s infinite;
395
  }
396
  .gr-audio {
397
+ border: 2px solid #004c4c;
398
  background-color: #f3e5f5;
399
  border-radius: 16px;
400
  padding: 12px;
 
446
  summary_output = gr.Markdown(label="πŸ“ Scene Summary", elem_id = "output")
447
  explanation_output = gr.Textbox(label="πŸ“– Scene Explanation", lines=6,elem_id="output")
448
 
449
+ with gr.Row():
450
  tts_btn = gr.Button("πŸ”Š Read Aloud", elem_id="tts-btn")
451
+ tts_audio = gr.Audio(label="Audio", autoplay=False,elem_classes="gr-audio")
452
 
453
  done_btn = gr.Button("βœ… Done", visible=False, elem_id="done-btn")
454
  txt_file = gr.File(label="πŸ“„ Explanations (.txt)", elem_classes="gr-file")