Gleb Gleb commited on
Commit
8c7a402
·
1 Parent(s): cc09a85

some changes

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. app.py +2 -2
Dockerfile CHANGED
@@ -21,7 +21,7 @@ COPY . .
21
 
22
  # Upgrade pip and install packages
23
  RUN pip install --upgrade pip
24
- RUN pip install "impresso_pipelines[solrnormalization]==0.4.6.5"
25
  RUN pip install gradio
26
 
27
  EXPOSE 7860
 
21
 
22
  # Upgrade pip and install packages
23
  RUN pip install --upgrade pip
24
+ RUN pip install "impresso_pipelines[solrnormalization]==0.4.6.6"
25
  RUN pip install gradio
26
 
27
  EXPOSE 7860
app.py CHANGED
@@ -8,7 +8,7 @@ from impresso_pipelines.solrnormalization import SolrNormalizationPipeline
8
 
9
  pipeline = SolrNormalizationPipeline()
10
 
11
- LANGUAGES = ["Auto-detect", "de", "fr", "es", "it", "pt", "nl", "en", "general"]
12
 
13
  def normalize(text, lang_choice):
14
  try:
@@ -27,7 +27,7 @@ demo = gr.Interface(
27
  ],
28
  outputs=gr.Textbox(label="Normalized Output"),
29
  title="Solr Normalization Pipeline",
30
- description="Text normalization using Lucene analyzers. Language auto-detected if not selected.",
31
  allow_flagging="never"
32
  )
33
 
 
8
 
9
  pipeline = SolrNormalizationPipeline()
10
 
11
+ LANGUAGES = ["de", "fr", "es", "it", "pt", "nl", "en", "general"]
12
 
13
  def normalize(text, lang_choice):
14
  try:
 
27
  ],
28
  outputs=gr.Textbox(label="Normalized Output"),
29
  title="Solr Normalization Pipeline",
30
+ description="Text normalization replicating Solr functionality.",
31
  allow_flagging="never"
32
  )
33