Cleaning code2

This commit is contained in:
Luka 2022-01-14 10:17:01 +01:00
parent 36e4ba9cfc
commit e8162bba46

3
app.py
View File

@ -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')