Spaces:
Paused
Paused
Update app.py
Browse files31 unmodified lines323334353536373831 unmodified lines return image, gr.update(value=out_path, visible=True)
css = """#col-container { margin: 0 auto; max-width: 900px; } @media (max-width: 600px) { #result-container, #result-container img { max-height: 100vh !important; height: auto !important; width: auto !important; max-width: 100% !important; } #result-container { display: flex; justify-content: center; } #generate-btn, #save-btn { font-size: 100% !important; padding: 12px 20px !important; min-height: unset !important; height: auto !important; } }#col-container { margin: 0 auto; max-width: 900px; } @media (max-width: 600px) { #result-container { width: 100% !important; max-width: 100% !important; height: 70vh !important; max-height: 70vh !important; display: flex !important; align-items: center !important; justify-content: center !important; } #result-container img { width: auto !important; height: auto !important; max-width: 100% !important; max-height: 100% !important; object-fit: contain !important; } #generate-btn, #save-btn { font-size: 100% !important; padding: 12px 20px !important; min-height: unset !important; height: auto !important; } }"""with gr.Blocks(css=css) as demo: with gr.Column(elem_id="col-container"):app.py+1-1