Spaces:
Runtime error
Runtime error
Commit ·
e459c2b
1
Parent(s): 4331e8b
Refactor UI layout: Simplify proportions, update audio input sections, and adjust container width for improved responsiveness and usability.
Browse files92 unmodified lines93949596979899155 unmodified lines2552562572582592602615 unmodified lines26726826927027127227327427527627727827928028128228328428528628728828992 unmodified lines}.container {max-width: 1200px;margin: 0 auto;padding: calc(20px * var(--golden-ratio));background-color: var(--main-bg-color);155 unmodified lineswith gr.Column(elem_classes="container"):# Logo sectionwith gr.Row(elem_classes="logo-container"):logo = gr.Image("logo.png", elem_id="logo")# Header sectionwith gr.Column(elem_classes="header"):5 unmodified lines</p>""")# Main content with Golden ratio proportionswith gr.Row():# Input section (larger according to Golden ratio)with gr.Column(scale=1.618, elem_classes="input-section"):original_audio = gr.Audio(type="filepath", label="Original .wav file")dubbed_audio = gr.Audio(type="filepath", label="Dubbed .wav file")email = gr.Textbox(label="Email")company_name = gr.Textbox(label="Company Name")tolerance = gr.Slider(0, 100, value=5, label="Tolerance Percentage",info="Set the tolerance for audio comparison.")submit_btn = gr.Button("Process Audio", variant="primary")# Output section (smaller according to Golden ratio)with gr.Column(scale=1, elem_classes="output-section"):output = gr.Text(label="Processing Status")gr.Markdown("### Results")gr.Markdown("Once processing is complete, results will be emailed to the address provided.")# Footerwith gr.Row(elem_classes="footer"):92 unmodified lines93949596979899155 unmodified lines2552562572582592602615 unmodified lines26726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130292 unmodified lines}.container {max-width: 100%;margin: 0 auto;padding: calc(20px * var(--golden-ratio));background-color: var(--main-bg-color);155 unmodified lineswith gr.Column(elem_classes="container"):# Logo sectionwith gr.Row(elem_classes="logo-container"):gr.HTML('<img src="file/logo.png" class="logo" alt="Logo">')# Header sectionwith gr.Column(elem_classes="header"):5 unmodified lines</p>""")# Main content with specified layout# First Row: Half Original Audio Input, Half Dubbed Audio Inputwith gr.Row(elem_classes="input-section"):with gr.Column(scale=1):original_audio = gr.Audio(type="filepath", label="Original .wav file")with gr.Column(scale=1):dubbed_audio = gr.Audio(type="filepath", label="Dubbed .wav file")# Second Row: 2/3 Email Input 1/3 Company Name Inputwith gr.Row(elem_classes="input-section"):with gr.Column(scale=2):email = gr.Textbox(label="Email")with gr.Column(scale=1):company_name = gr.Textbox(label="Company Name")# Third Row: Tolerance Percentagewith gr.Row(elem_classes="input-section"):tolerance = gr.Slider(0, 100, value=5, label="Tolerance Percentage",info="Set the tolerance for audio comparison.")# Fourth Row: Processing Statuswith gr.Row(elem_classes="output-section"):output = gr.Text(label="Processing Status")with gr.Row():submit_btn = gr.Button("Process Audio", variant="primary")with gr.Row():gr.Markdown("### Results")gr.Markdown("Once processing is complete, results will be emailed to the address provided.")# Footerwith gr.Row(elem_classes="footer"):
app.py+28-15