imvladikon commited on
Commit
15c8eba
1 Parent(s): a3c2037

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -5,7 +5,10 @@ import spacy_udpipe
5
  import streamlit as st
6
  from spacy import displacy
7
 
8
- spacy_udpipe.download("ar")
 
 
 
9
  nlp = spacy_udpipe.load("ar")
10
  nlp.add_pipe("span_marker",
11
  config={"model": "iahlt/span-marker-xlm-roberta-base-ar"})
 
5
  import streamlit as st
6
  from spacy import displacy
7
 
8
+ try:
9
+ spacy_udpipe.download("ar")
10
+ except:
11
+ pass
12
  nlp = spacy_udpipe.load("ar")
13
  nlp.add_pipe("span_marker",
14
  config={"model": "iahlt/span-marker-xlm-roberta-base-ar"})