Skip to content

Commit

Permalink
Update services/data-rapido/v1/rapido.py
Browse files Browse the repository at this point in the history
Co-authored-by: François Parmentier <francois.parmentier@gmail.com>
  • Loading branch information
Luc-Ank and parmentf authored Nov 13, 2024
1 parent f02172d commit 6ca8872
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions services/data-rapido/v1/rapido.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,11 @@ def rapido(dfAnnotations,dfText,ignoreWords,nlp,lAnnot,app=False):
return exporter.listPersee

# Args
app = False
if '-p' in sys.argv:
arg = int(sys.argv[sys.argv.index('-p') + 1])
if arg == 0:
app = False
else:
if arg != 0:
app = True
else:
app = False

# Pre-loading
dfAnnotations = pd.read_csv(annotations_path)
Expand Down

0 comments on commit 6ca8872

Please sign in to comment.