diff --git a/demo.py b/demo.py index 166a310..a8792dc 100644 --- a/demo.py +++ b/demo.py @@ -40,6 +40,12 @@ inputs = [ outputs = gr.outputs.Label(type="confidences",num_top_classes=5) title = "CLIP" -description = "CLIP demo" +description = "demo for OpenAI's CLIP. To use it, simply upload your image, or click one of the examples to load them and optionally add a text label seperated by commas to help clip classify the image better. Read more at the links below." +article = "

CLIP: Connecting Text and Images | Github Repo

" -gr.Interface(classify, inputs, outputs, title=title, description=description).launch(debug=True) \ No newline at end of file +examples = [ + ["zebra.jpg"], + ["giraffe.jpg"] +] + +gr.Interface(classify, inputs, outputs, title=title, description=description, examples=examples).launch(debug=True) \ No newline at end of file diff --git a/giraffe.jpg b/giraffe.jpg new file mode 100644 index 0000000..6c96267 Binary files /dev/null and b/giraffe.jpg differ diff --git a/zebra.jpg b/zebra.jpg new file mode 100644 index 0000000..d4794f4 Binary files /dev/null and b/zebra.jpg differ