Spaces:
Running
Running
update app.py
Browse files
app.py
CHANGED
@@ -101,6 +101,15 @@ if __name__ == '__main__':
|
|
101 |
"late_chunking_text", "late_chunking_score"],
|
102 |
label="Retrieve Result",
|
103 |
wrap=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
|
105 |
submit.click(fn=embedding_retriever,
|
106 |
inputs=[query, text, sep],
|
|
|
101 |
"late_chunking_text", "late_chunking_score"],
|
102 |
label="Retrieve Result",
|
103 |
wrap=True)
|
104 |
+
|
105 |
+
examples = gr.Examples(
|
106 |
+
examples=[
|
107 |
+
["王安石是哪里人?",
|
108 |
+
"王安石(1021年12月19日-1086年5月21日),字介甫,号半山。抚州临川县(今属江西省抚州市)人。中国北宋时期政治家、文学家、思想家、改革家。庆历二年(1042年),王安石中进士,历任扬州签判、鄞县知县、舒州通判等职,政绩显著。宋仁宗末年,曾作《上仁宗皇帝言事书》,要求对宋初以来的法度进行全盘改革,但未被采纳。",
|
109 |
+
"。"]
|
110 |
+
],
|
111 |
+
inputs=[query, text, sep]
|
112 |
+
)
|
113 |
|
114 |
submit.click(fn=embedding_retriever,
|
115 |
inputs=[query, text, sep],
|