Spaces:
Running
Running
Commit
Β·
c4bc2a0
1
Parent(s):
106f995
Sync changes
Browse files- app.py +4 -5
- constants.py +1 -1
app.py
CHANGED
@@ -110,12 +110,11 @@ def analyze_document(corpus_desc, engine_desc, query, request: gr.Request):
|
|
110 |
with gr.Blocks() as demo:
|
111 |
with gr.Column():
|
112 |
gr.HTML(
|
113 |
-
'''<h1 text-align="center">Infini-gram: An Engine for n-gram / β-gram Language
|
114 |
|
115 |
-
<p style='font-size: 16px;'>This is an engine that processes n-gram / β-gram queries on
|
116 |
-
<p style='font-size: 16px;'>The engine is developed by <a href="https://liujch1998.github.io">Jiacheng (Gary) Liu</a> and documented in our paper: <a href="https://
|
117 |
-
<p style='font-size: 16px;'>
|
118 |
-
<p style='font-size: 16px;'><b>Note: We kindly ask you not to programmatically submit queries to the API at the moment. We will release a more stable API soon. Thank you :)</b></p>
|
119 |
'''
|
120 |
)
|
121 |
with gr.Row():
|
|
|
110 |
with gr.Blocks() as demo:
|
111 |
with gr.Column():
|
112 |
gr.HTML(
|
113 |
+
'''<h1 text-align="center">Infini-gram: An Engine for n-gram / β-gram Language Modeling with Trillion-Token Corpora</h1>
|
114 |
|
115 |
+
<p style='font-size: 16px;'>This is an engine that processes n-gram / β-gram queries on massive text corpora. Please first select the corpus and the type of query, then enter your query and submit. The query is <b>case-sensitive</b>.</p>
|
116 |
+
<p style='font-size: 16px;'>The engine is developed by <a href="https://liujch1998.github.io">Jiacheng (Gary) Liu</a> and documented in our paper: <a href="https://huggingface.co/papers/2401.17377">Infini-gram: Scaling Unbounded n-gram Language Models to a Trillion Tokens</a>.</p>
|
117 |
+
<p style='font-size: 16px;'><b>API Endpoint:</b> If you'd like to issue batch queries to infini-gram, you may invoke our API endpoint. Please refer to the <a href="https://infini-gram.io/api_doc">API documentation</a>.</p>
|
|
|
118 |
'''
|
119 |
)
|
120 |
with gr.Row():
|
constants.py
CHANGED
@@ -10,8 +10,8 @@ CORPUS_BY_DESC = {
|
|
10 |
}
|
11 |
CORPUS_DESCS = list(CORPUS_BY_DESC.keys())
|
12 |
ENGINE_BY_DESC = {
|
|
|
13 |
'Python': 'python',
|
14 |
-
'C++ (π Fast, Experimental)': 'c++',
|
15 |
}
|
16 |
ENGINE_DESCS = list(ENGINE_BY_DESC.keys())
|
17 |
ENGINES = list(ENGINE_BY_DESC.values())
|
|
|
10 |
}
|
11 |
CORPUS_DESCS = list(CORPUS_BY_DESC.keys())
|
12 |
ENGINE_BY_DESC = {
|
13 |
+
'C++ (ππ Fast)': 'c++',
|
14 |
'Python': 'python',
|
|
|
15 |
}
|
16 |
ENGINE_DESCS = list(ENGINE_BY_DESC.keys())
|
17 |
ENGINES = list(ENGINE_BY_DESC.values())
|