Spaces:
Build error
Build error
Update app.py
Browse files113 unmodified lines1141151161171181191201211221231241251261272 unmodified lines130131132133134135136137138113 unmodified lines# Gradio interfacewith gr.Blocks() as interface:# Instruction before file inputgr.Markdown("### Step 1: Upload Your Images")gr.Markdown("Upload multiple image files that you want to process using the model.")# Multiple file input and display areafile_input = gr.Files(label="Upload multiple image files", type="filepath")image_display = gr.Image(label="Processed Image")label_display = gr.Textbox(label="Label File Content")# Buttons for carousel navigationprev_button = gr.Button("Previous Image")2 unmodified lines# Hidden state to store current indexcurrent_index = gr.State(0)# Instruction before downloadgr.Markdown("### Step 2: Download Processed Images and Annotations")gr.Markdown("After processing, you can download all processed images and annotations as a ZIP file.")# Button to download all processed images and annotations as a ZIP filedownload_button = gr.Button("Prepare and Download All")113 unmodified lines1141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431442 unmodified lines147148149150151152153154155113 unmodified lines# Gradio interfacewith gr.Blocks() as interface:# Welcome message and general instructionsgr.Markdown("## Welcome to the YOLO Image Processing App!")gr.Markdown("""This app allows you to upload multiple images, process them using a custom YOLO model, and download the processed images along with their YOLO-format annotations.### How to Use:1. **Upload**: Upload multiple images for processing.2. **View**: Navigate through the processed images using the 'Previous' and 'Next' buttons.3. **Download**: Download all processed images and annotations as a ZIP file.Follow the instructions below to get started!""")# Step 1: Upload Instructionsgr.Markdown("### Step 1: Upload Your Images")gr.Markdown("Upload multiple image files that you want to process using the model. The supported file types are JPEG and PNG.")# Multiple file input and display areafile_input = gr.Files(label="Upload multiple image files", type="filepath")image_display = gr.Image(label="Processed Image")label_display = gr.Textbox(label="YOLO Annotation for the Processed Image")# Step 2: Navigation Instructionsgr.Markdown("### Step 2: View Your Processed Images")gr.Markdown("After processing, use the 'Previous Image' and 'Next Image' buttons to navigate through the processed images and view their annotations.")# Buttons for carousel navigationprev_button = gr.Button("Previous Image")2 unmodified lines# Hidden state to store current indexcurrent_index = gr.State(0)# Step 3: Download Instructionsgr.Markdown("### Step 3: Download All Processed Images and Annotations")gr.Markdown("Click the 'Prepare and Download All' button to download a ZIP file containing all processed images and YOLO annotations.")# Button to download all processed images and annotations as a ZIP filedownload_button = gr.Button("Prepare and Download All")
app.py+23-6