Update app.py
Browse files
app.py
CHANGED
@@ -56,9 +56,9 @@ def compare_pdfs(pdf1, pdf2):
|
|
56 |
return f"The cosine similarity between the two PDF documents is: {similarity_score:.4f}"
|
57 |
|
58 |
# Gradio interface: accept two PDF files and output cosine similarity score
|
59 |
-
inputs = [gr.File(label="Upload
|
60 |
-
outputs = gr.Textbox(label="Cosine Similarity")
|
61 |
|
62 |
# Set up the Gradio interface
|
63 |
-
gr.Interface(fn=compare_pdfs, inputs=inputs, outputs=outputs, title="
|
64 |
|
|
|
56 |
return f"The cosine similarity between the two PDF documents is: {similarity_score:.4f}"
|
57 |
|
58 |
# Gradio interface: accept two PDF files and output cosine similarity score
|
59 |
+
inputs = [gr.File(label="Upload Human SCDD"), gr.File(label="Upload AI SCDD")]
|
60 |
+
outputs = gr.Textbox(label="Cosine Similarity Score")
|
61 |
|
62 |
# Set up the Gradio interface
|
63 |
+
gr.Interface(fn=compare_pdfs, inputs=inputs, outputs=outputs, title="AI-Human SCDD Similarity Checker with NASA Bi-Encoder").launch()
|
64 |
|