Spaces:
Sleeping
Sleeping
Download tempCodeRunnerFile.py from HIIBYEE/Recycling-CV: direct link, hf CLI and curl.
- Browser
- Download file 337 Bytes
-
https://huggingface.co/spaces/HIIBYEE/Recycling-CV/resolve/main/tempCodeRunnerFile.py
- Command line
-
hf download hf://spaces/HIIBYEE/Recycling-CV/tempCodeRunnerFile.py
-
curl -L -o tempCodeRunnerFile.py https://huggingface.co/spaces/HIIBYEE/Recycling-CV/resolve/main/tempCodeRunnerFile.py
337 Bytes
| webcam_input = gr.Camera(label="Take a picture", type="pil") | |
| json_output2 = gr.JSON(label="Prediction (top class + confidence %)") | |
| label_output2 = gr.Label(num_top_classes=3, label="Top-3 probabilities") | |
| webcam_input.change(predict, inputs=webcam_input, outputs=[json_output2, label_output2]) |