wilwork commited on
Commit
3585ee9
·
verified ·
1 Parent(s): 691416f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -10
app.py CHANGED
@@ -30,17 +30,15 @@ def get_relevance_score(query, paragraph):
30
 
31
  # Define Gradio interface
32
  interface = gr.Interface(
33
- fn=get_relevance_score,
34
- inputs=[
35
- gr.Textbox(label="Query", placeholder="Enter your search query..."),
36
- gr.Textbox(label="Document Paragraph", placeholder="Enter a paragraph to match...")
37
- ],
38
- outputs=gr.Textbox(label="Relevance Score"),
39
- title="Cross-Encoder Relevance Scoring",
40
- description="Enter a query and a document paragraph to get a relevance score using the MS MARCO MiniLM L-12 v2 model.",
41
- allow_flagging="never"
42
  )
43
 
 
 
44
  if __name__ == "__main__":
45
  print("Launching Gradio app...")
46
- interface.launch()
 
30
 
31
  # Define Gradio interface
32
  interface = gr.Interface(
33
+ fn=test_function,
34
+ inputs=[gr.Textbox(label="Query"), gr.Textbox(label="Document Paragraph")],
35
+ outputs=gr.Textbox(label="Output"),
36
+ title="Test App",
37
+ description="Testing if UI responds to input."
 
 
 
 
38
  )
39
 
40
+
41
+
42
  if __name__ == "__main__":
43
  print("Launching Gradio app...")
44
+ interface.launch(share=True, ssr=False)