Browse Source

Cleaning code2

master
Luka 11 months ago
parent
commit
e8162bba46
  1. 3
      app.py

3
app.py

@ -1,4 +1,3 @@
import torch
from flask import Flask, request
import classla
import gc
@ -7,8 +6,6 @@ classla.download('sl')
classla.download('sl', type='standard_jos')
classla.download('sl', type='nonstandard')
print(f'USE GPU = {torch.cuda.is_available()}')
nlp_standard_UD = classla.Pipeline('sl', pos_use_lexicon=True)
nlp_standard_JOS = classla.Pipeline('sl', pos_use_lexicon=True, type='standard_jos')
nlp_nonstandard_UD = classla.Pipeline('sl', type='nonstandard')

Loading…
Cancel
Save