Spaces:
Running
Running
liujch1998
commited on
Commit
·
4a045f5
1
Parent(s):
88fb6c3
Sync changes
Browse files
app.py
CHANGED
@@ -260,7 +260,7 @@ with gr.Blocks() as demo:
|
|
260 |
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},
|
@@ -310,16 +310,25 @@ If you find this tool useful, please kindly cite our paper:
|
|
310 |
# row_7,
|
311 |
])
|
312 |
|
313 |
-
for d in demo.dependencies:
|
314 |
-
|
315 |
-
|
316 |
-
|
|
|
|
|
|
|
317 |
|
318 |
demo.queue(
|
319 |
default_concurrency_limit=default_concurrency_limit,
|
320 |
max_size=max_size,
|
|
|
321 |
).launch(
|
322 |
max_threads=max_threads,
|
323 |
debug=debug,
|
324 |
show_api=False,
|
325 |
)
|
|
|
|
|
|
|
|
|
|
|
|
260 |
with gr.Row():
|
261 |
gr.Markdown('''
|
262 |
If you find this tool useful, please kindly cite our paper:
|
263 |
+
```bibtex
|
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},
|
|
|
310 |
# row_7,
|
311 |
])
|
312 |
|
313 |
+
# for d in demo.dependencies:
|
314 |
+
# d['api_name'] = False
|
315 |
+
# for d in demo.config['dependencies']:
|
316 |
+
# d['api_name'] = False
|
317 |
+
# if debug:
|
318 |
+
# print(demo.dependencies)
|
319 |
+
# print(demo.config['dependencies'])
|
320 |
|
321 |
demo.queue(
|
322 |
default_concurrency_limit=default_concurrency_limit,
|
323 |
max_size=max_size,
|
324 |
+
api_open=False,
|
325 |
).launch(
|
326 |
max_threads=max_threads,
|
327 |
debug=debug,
|
328 |
show_api=False,
|
329 |
)
|
330 |
+
|
331 |
+
# for d in gr.context.Context.root_block.dependencies:
|
332 |
+
# d['api_name'] = False
|
333 |
+
# if debug:
|
334 |
+
# print(gr.context.Context.root_block.dependencies)
|