from image_validator import Image_Validator | |
import gradio as gr | |
image_validator = Image_Validator(model_name="CLIP-ViT Base") | |
iface = gr.Interface(image_validator.similarity_score, | |
inputs=["image", "image"], | |
outputs="number", | |
title="Product Image Similarity Calculator", | |
description="Enter two product descriptions to calculate their similarity." | |
) | |
iface.launch() |