Spaces:
Sleeping
Sleeping
orionweller
commited on
Commit
•
dc4d5eb
1
Parent(s):
7ca5c5f
docs
Browse files
app.py
CHANGED
@@ -1,9 +1,5 @@
|
|
1 |
import os
|
2 |
-
# set JAVA_HOME by finding it, e.g. JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:bin/javac::")
|
3 |
-
# print the contents of /user/lib
|
4 |
-
print(os.listdir("/usr/lib/jvm/default-java"))
|
5 |
os.environ["JAVA_HOME"] = "/usr/lib/jvm/default-java"
|
6 |
-
print(os.environ["JAVA_HOME"])
|
7 |
|
8 |
import gradio as gr
|
9 |
from pyserini.search.lucene import LuceneSearcher
|
@@ -85,7 +81,7 @@ css = """
|
|
85 |
|
86 |
with gr.Blocks(css=css) as iface:
|
87 |
gr.Markdown("# Pyserini Search Interface")
|
88 |
-
gr.Markdown("Enter a query to search using Pyserini with BM25 scoring (k1=0.9, b=0.4).")
|
89 |
|
90 |
with gr.Row():
|
91 |
index_input = gr.Textbox(
|
|
|
1 |
import os
|
|
|
|
|
|
|
2 |
os.environ["JAVA_HOME"] = "/usr/lib/jvm/default-java"
|
|
|
3 |
|
4 |
import gradio as gr
|
5 |
from pyserini.search.lucene import LuceneSearcher
|
|
|
81 |
|
82 |
with gr.Blocks(css=css) as iface:
|
83 |
gr.Markdown("# Pyserini Search Interface")
|
84 |
+
gr.Markdown("Enter a query to search using Pyserini with BM25 scoring (k1=0.9, b=0.4). See all possible prebuild index names at [https://github.com/castorini/pyserini/blob/master/docs/prebuilt-indexes.md#standard-lucene-indexes](https://github.com/castorini/pyserini/blob/master/docs/prebuilt-indexes.md#standard-lucene-indexes)")
|
85 |
|
86 |
with gr.Row():
|
87 |
index_input = gr.Textbox(
|