theArijitDas's picture
Create app.py
b2c33b2 verified
raw
history blame
457 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 Description Similarity Calculator",
description="Enter two product descriptions to calculate their similarity."
)
iface.launch()