tika update
This commit is contained in:
@@ -2,7 +2,7 @@ import connexion
|
||||
import json
|
||||
from pathlib import Path
|
||||
from swagger_server.models.izlusci_body import IzlusciBody # noqa: E501
|
||||
from swagger_server.classla import cl_utils
|
||||
from swagger_server.utils import cl_utils
|
||||
import requests
|
||||
|
||||
# ATEapi_endpoint = "http://localhost:5000/predict"
|
||||
|
||||
@@ -7,7 +7,7 @@ import concurrent.futures as cf
|
||||
from swagger_server.models.job_response import JobResponse # noqa: E501
|
||||
from swagger_server.requets_db.models.vrsta import (Job)
|
||||
from threading import Thread
|
||||
from swagger_server.classla import cl_utils
|
||||
from swagger_server.utils import cl_utils
|
||||
from swagger_server.utils import txt_utils
|
||||
from werkzeug.datastructures import FileStorage
|
||||
import threading
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from swagger_server.classla import cl_utils
|
||||
from swagger_server.utils import cl_utils
|
||||
from swagger_server.utils import txt_utils
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@ def datoteka_v_besedilo_sync_post(file=None): # noqa: E501
|
||||
try:
|
||||
return txt_utils.extract_text_prepResp(file)
|
||||
except Exception as e:
|
||||
print(e)
|
||||
return str(e), 500
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user