cakiki commited on
Commit
390f7bf
1 Parent(s): 8083184

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ import gradio as gr
8
  from elasticsearch import Elasticsearch
9
  from elasticsearch_dsl import Search, Q
10
 
11
- es = Elasticsearch(os.environ.get("host"), timeout=10)
12
 
13
  def mark_tokens_bold(string, tokens):
14
  for token in tokens:
 
8
  from elasticsearch import Elasticsearch
9
  from elasticsearch_dsl import Search, Q
10
 
11
+ es = Elasticsearch(os.environ.get("host"), timeout=100, http_compress=True, maxsize=1000)
12
 
13
  def mark_tokens_bold(string, tokens):
14
  for token in tokens: