theArijitDas's picture
Update app.py
16607b3 verified
raw
history blame contribute delete
451 Bytes
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()