Update app.py
Browse files
app.py
CHANGED
@@ -30,17 +30,15 @@ def get_relevance_score(query, paragraph):
|
|
30 |
|
31 |
# Define Gradio interface
|
32 |
interface = gr.Interface(
|
33 |
-
fn=
|
34 |
-
inputs=[
|
35 |
-
|
36 |
-
|
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)
|