Spaces:
Sleeping
Sleeping
Update app.py
Browse files46 unmodified lines4748495051525354555657585915 unmodified lines7576777879808146 unmodified lines)# Save to temp file as PNGtemp_file = tempfile.NamedTemporaryFile(delete=False, suffix=".jpg")depth_image_padded.save(temp_file.name, format="jpg")temp_file.close()# Return as downloadable filereturn temp_file.name15 unmodified linesinput_image = gr.Image(type="filepath", label="Input Image")button = gr.Button("Predict")with gr.Column():predicted_depth = gr.File(label="Predicted Depth (Download PNG)")with gr.Row():autostereogram = gr.Image(label="Autostereogram", type="pil")with gr.Row():46 unmodified lines474849505152535415 unmodified lines7071727374757646 unmodified lines)# Return as downloadable filereturn depth_image_padded15 unmodified linesinput_image = gr.Image(type="filepath", label="Input Image")button = gr.Button("Predict")with gr.Column():predicted_depth = gr.Image(label="Predicted Depth", type="pil")with gr.Row():autostereogram = gr.Image(label="Autostereogram", type="pil")with gr.Row():
app.py+2-7