Spaces:
Sleeping
Sleeping
glitz-dev
commited on
Commit
·
296015b
1
Parent(s):
b3ad8fa
import issue of openCV cleared with PIL
Browse files- hipaathesis.py +3 -2
hipaathesis.py
CHANGED
|
@@ -89,6 +89,7 @@ import logging
|
|
| 89 |
import getpass
|
| 90 |
import tempfile
|
| 91 |
import shutil
|
|
|
|
| 92 |
from fastapi import FastAPI
|
| 93 |
from fastapi.staticfiles import StaticFiles
|
| 94 |
from pydantic import BaseModel
|
|
@@ -103,9 +104,9 @@ try:
|
|
| 103 |
OPENCV_AVAILABLE = True
|
| 104 |
except ImportError:
|
| 105 |
print("OpenCV not available. Using PIL for image preprocessing.")
|
|
|
|
| 106 |
OPENCV_AVAILABLE = False
|
| 107 |
-
|
| 108 |
-
|
| 109 |
from questions import THESIS_QUESTIONS
|
| 110 |
from pubtator_annotator import PubTatorAnnotator
|
| 111 |
|
|
|
|
| 89 |
import getpass
|
| 90 |
import tempfile
|
| 91 |
import shutil
|
| 92 |
+
import numpy as np
|
| 93 |
from fastapi import FastAPI
|
| 94 |
from fastapi.staticfiles import StaticFiles
|
| 95 |
from pydantic import BaseModel
|
|
|
|
| 104 |
OPENCV_AVAILABLE = True
|
| 105 |
except ImportError:
|
| 106 |
print("OpenCV not available. Using PIL for image preprocessing.")
|
| 107 |
+
from PIL import Image
|
| 108 |
OPENCV_AVAILABLE = False
|
| 109 |
+
|
|
|
|
| 110 |
from questions import THESIS_QUESTIONS
|
| 111 |
from pubtator_annotator import PubTatorAnnotator
|
| 112 |
|