liujch1998 commited on
Commit
88fb6c3
β€’
1 Parent(s): 4bd71cd

Sync changes

Browse files
Files changed (1) hide show
  1. app.py +12 -2
app.py CHANGED
@@ -68,7 +68,7 @@ with gr.Blocks() as demo:
68
  '''<h1 text-align="center">Infini-gram: An Engine for n-gram / ∞-gram Language Models with Trillion-Token Corpora</h1>
69
 
70
  <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>
71
- <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="">Infini-gram: Scaling Unbounded n-gram Language Models to a Trillion Tokens</a></p>
72
  '''
73
  )
74
  with gr.Row():
@@ -261,7 +261,12 @@ with gr.Blocks() as demo:
261
  gr.Markdown('''
262
  If you find this tool useful, please kindly cite our paper:
263
  ```
264
- (coming soon)
 
 
 
 
 
265
  ```
266
  ''')
267
 
@@ -305,6 +310,11 @@ If you find this tool useful, please kindly cite our paper:
305
  # row_7,
306
  ])
307
 
 
 
 
 
 
308
  demo.queue(
309
  default_concurrency_limit=default_concurrency_limit,
310
  max_size=max_size,
 
68
  '''<h1 text-align="center">Infini-gram: An Engine for n-gram / ∞-gram Language Models with Trillion-Token Corpora</h1>
69
 
70
  <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>
71
+ <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></p>
72
  '''
73
  )
74
  with gr.Row():
 
261
  gr.Markdown('''
262
  If you find this tool useful, please kindly cite our paper:
263
  ```
264
+ @article{Liu2024InfiniGram,
265
+ title={Infini-gram: Scaling Unbounded n-gram Language Models to a Trillion Tokens},
266
+ author={Liu, Jiacheng and Min, Sewon and Zettlemoyer, Luke and Choi, Yejin and Hajishirzi, Hannaneh},
267
+ journal={arXiv preprint arXiv:2401.17377},
268
+ year={2024}
269
+ }
270
  ```
271
  ''')
272
 
 
310
  # row_7,
311
  ])
312
 
313
+ for d in demo.dependencies:
314
+ d['api_name'] = False
315
+ if debug:
316
+ print(demo.dependencies)
317
+
318
  demo.queue(
319
  default_concurrency_limit=default_concurrency_limit,
320
  max_size=max_size,