Spaces:
Runtime error
Runtime error
Update app.py
Browse files5 unmodified lines6789101112283 unmodified lines2962972982993003013025 unmodified linesos.system("python -m pip install -e GroundingDINO")os.system("pip install --upgrade diffusers[torch]")os.system("pip install opencv-python pycocotools matplotlib onnxruntime onnx ipykernel")os.system("wget https://github.com/IDEA-Research/Grounded-Segment-Anything/raw/main/assets/demo1.jpg")os.system("wget https://huggingface.co/ShilongLiu/GroundingDINO/resolve/main/groundingdino_swint_ogc.pth")os.system("wget https://huggingface.co/spaces/mrtlive/segment-anything-model/resolve/main/sam_vit_h_4b8939.pth")sys.path.append(os.path.join(os.getcwd(), "GroundingDINO"))283 unmodified lines# value="plastic.metal.paper.glass.cardboard.wood.rubber")run_button = gr.Button(label="Run")gr.Markdown("# Image Examples")gr.Examples(["sample1.jpeg", "sample2.png","sample3.jpg","sample4.jpg"], input_image,cache_examples=False)# with gr.Accordion("Advanced options", open=False):# box_threshold = gr.Slider(# label="Box Threshold", minimum=0.0, maximum=1.0, value=0.3, step=0.0015 unmodified lines6789101112131415161718283 unmodified lines3023033043053063073085 unmodified linesos.system("python -m pip install -e GroundingDINO")os.system("pip install --upgrade diffusers[torch]")os.system("pip install opencv-python pycocotools matplotlib onnxruntime onnx ipykernel")os.system("wget https://cleancoastindia.com//SsagarSvc/Uploads/sample1.jpeg")os.system("wget https://cleancoastindia.com/SsagarSvc/Uploads/sample2.png")os.system("wget https://cleancoastindia.com/SsagarSvc/Uploads/sample3.jpg")os.system("wget https://cleancoastindia.com/SsagarSvc/Uploads/sample4.jpg")os.system("wget https://cleancoastindia.com/SsagarSvc/Uploads/sample5.jpg")os.system("wget https://cleancoastindia.com/SsagarSvc/Uploads/sample6.jpeg")os.system("wget https://cleancoastindia.com/SsagarSvc/Uploads/sample7.jpeg")os.system("wget https://huggingface.co/ShilongLiu/GroundingDINO/resolve/main/groundingdino_swint_ogc.pth")os.system("wget https://huggingface.co/spaces/mrtlive/segment-anything-model/resolve/main/sam_vit_h_4b8939.pth")sys.path.append(os.path.join(os.getcwd(), "GroundingDINO"))283 unmodified lines# value="plastic.metal.paper.glass.cardboard.wood.rubber")run_button = gr.Button(label="Run")gr.Markdown("# Image Examples")gr.Examples(["sample1.jpeg", "sample2.png","sample3.jpg","sample4.jpg","sample5.jpg","sample6.jpeg","sample7.jpeg"], input_image,cache_examples=False)# with gr.Accordion("Advanced options", open=False):# box_threshold = gr.Slider(# label="Box Threshold", minimum=0.0, maximum=1.0, value=0.3, step=0.001
app.py+8-2