liujch1998 commited on
Commit
c4bc2a0
β€’
1 Parent(s): 106f995

Sync changes

Browse files
Files changed (2) hide show
  1. app.py +4 -5
  2. 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 Models with Trillion-Token Corpora</h1>
114
 
115
- <p style='font-size: 16px;'>This is an engine that processes n-gram / ∞-gram queries on a text corpus. Please first select the corpus and the type of query, then enter your query and submit.</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://arxiv.org/abs/2401.17377">Infini-gram: Scaling Unbounded n-gram Language Models to a Trillion Tokens</a>. HF Paper Page: <a href="https://huggingface.co/papers/2401.17377">https://huggingface.co/papers/2401.17377</a></p>
117
- <p style='font-size: 16px;'>All inputs are <b>case-sensitive</b>.</p>
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())