Spaces:
Runtime error
Runtime error
Update app.py (#1)
Browse files- Update app.py (b519821529bd48aac877c40075871b053d268648)
Co-authored-by: L_Ai_n <not-lain@users.noreply.huggingface.co>
6 unmodified lines789101112131415161718196 unmodified linespredictions = pipeline(input_img , threshold=0.5, #optional parameter defaults to 0return_scores = False #optional parameter defaults to False)return input_img, {p["label"]: p["score"] for p in predictions}gradio_app = gr.Interface(predict,inputs=gr.Image(label="Select hot dog candidate", sources=['upload', 'webcam'], type="pil"),outputs=[gr.Image(label="Processed Image"), gr.Label(label="Result", num_top_classes=2)],title="Hot Dog? Or Not?",)if __name__ == "__main__":6 unmodified lines789101112131415161718196 unmodified linespredictions = pipeline(input_img , threshold=0.5, #optional parameter defaults to 0return_scores = False #optional parameter defaults to False)return predictionsgradio_app = gr.Interface(predict,inputs=gr.Image(label="add your image here", sources=['upload', 'webcam'], type="pil"),outputs=gr.Text(),title="Image Annotator",)if __name__ == "__main__":
app.py+4-4