theArijitDas's picture
Upload 3 files
517a261 verified
raw
history blame contribute delete
488 Bytes
from description_validator import Description_Validator
import gradio as gr
description_validator = Description_Validator(model_name="DistilRoBERTa-v1")
iface = gr.Interface(description_validator.similarity_score,
inputs=["text", "text"],
outputs="number",
title="Product Description Similarity Calculator",
description="Enter two product descriptions to calculate their similarity."
)
iface.launch()