Spaces:
Running
Running
Update app.py
Browse files422 unmodified lines423424425426427428429430431432422 unmodified linesreturn audio_file, transcript, Nonewith gr.Blocks(title="PDF to Audio", css="""#main_container {margin-top: 60px;}""") as demo: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.")submit_btn = gr.Button("Generate Audio", elem_id="submit_btn")with gr.Row(elem_id="main_container"):422 unmodified lines423424425426427428429430431432433434435436437438439440441442443444445422 unmodified linesreturn audio_file, transcript, Nonewith gr.Blocks(title="PDF to Audio", css="""#main_container {margin-top: 60px;}#logo {position: absolute;top: 10px;right: 10px;width: 100px; /* Fixed width */height: auto; /* Maintain aspect ratio */max-height: 60px; /* Maximum height */object-fit: contain; /* Ensure the entire logo is visible */}""") as demo:with gr.Row():gr.Markdown("# Convert PDFs into an audio podcast, lecture, summary and others", elem_id="title")gr.Image("logo.png", elem_id="logo", width=100, height=60) # Specify dimensions here toogr.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.")submit_btn = gr.Button("Generate Audio", elem_id="submit_btn")with gr.Row(elem_id="main_container"):
app.py+16-3