mjbuehler commited on
Commit
7f78cc6
1 Parent(s): 15a2b0b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -3
app.py CHANGED
@@ -423,10 +423,23 @@ def validate_and_generate_audio(*args):
423
  return audio_file, transcript, None
424
 
425
  with gr.Blocks(title="PDF to Audio", css="""
426
- #main_container {margin-top: 60px;}
427
- """) as demo:
 
 
 
 
 
 
 
 
 
428
 
429
- gr.Markdown("# Convert PDFs into an audio podcast, lecture, summary and others\nFirst, upload one or more PDFs, select options, then push Generate Audio.\nYou can also select a variety of custom option and direct the way the result is generated.")
 
 
 
 
430
  submit_btn = gr.Button("Generate Audio", elem_id="submit_btn")
431
 
432
  with gr.Row(elem_id="main_container"):
 
423
  return audio_file, transcript, None
424
 
425
  with gr.Blocks(title="PDF to Audio", css="""
426
+ #main_container {margin-top: 60px;}
427
+ #logo {
428
+ position: absolute;
429
+ top: 10px;
430
+ right: 10px;
431
+ width: 100px; /* Fixed width */
432
+ height: auto; /* Maintain aspect ratio */
433
+ max-height: 60px; /* Maximum height */
434
+ object-fit: contain; /* Ensure the entire logo is visible */
435
+ }
436
+ """) as demo:
437
 
438
+ with gr.Row():
439
+ gr.Markdown("# Convert PDFs into an audio podcast, lecture, summary and others", elem_id="title")
440
+ gr.Image("logo.png", elem_id="logo", width=100, height=60) # Specify dimensions here too
441
+
442
+ gr.Markdown("First, upload one or more PDFs, select options, then push Generate Audio.\nYou can also select a variety of custom option and direct the way the result is generated.")
443
  submit_btn = gr.Button("Generate Audio", elem_id="submit_btn")
444
 
445
  with gr.Row(elem_id="main_container"):