aquibmoin commited on
Commit
01437c3
1 Parent(s): 34aa3d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 PDF 1"), gr.File(label="Upload PDF 2")]
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="PDF Cosine Similarity with NASA Bi-Encoder").launch()
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