chore: correct txt
Browse files
server.py
CHANGED
|
@@ -5,7 +5,7 @@ from typing import List
|
|
| 5 |
|
| 6 |
from fastapi import FastAPI, File, Form, UploadFile
|
| 7 |
from fastapi.responses import JSONResponse, Response
|
| 8 |
-
from utils import DEPLOYMENT_DIR, SERVER_DIR # pylint: disable=no-name-in-module
|
| 9 |
|
| 10 |
from concrete.ml.deployment import FHEModelServer
|
| 11 |
|
|
|
|
| 5 |
|
| 6 |
from fastapi import FastAPI, File, Form, UploadFile
|
| 7 |
from fastapi.responses import JSONResponse, Response
|
| 8 |
+
from utils import DEPLOYMENT_DIR, SERVER_DIR # pylint: disable=no-name-in-module
|
| 9 |
|
| 10 |
from concrete.ml.deployment import FHEModelServer
|
| 11 |
|
utils.py
CHANGED
|
@@ -31,8 +31,6 @@ TESTING_FILENAME = "./data/Testing_preprocessed.csv"
|
|
| 31 |
|
| 32 |
# pylint: disable=invalid-name
|
| 33 |
|
| 34 |
-
from typing import List, Tuple
|
| 35 |
-
|
| 36 |
|
| 37 |
def pretty_print(
|
| 38 |
inputs, case_conversion=str.title, which_replace: str = "_", to_what: str = " ", delimiter=None
|
|
@@ -101,8 +99,6 @@ def load_data() -> Union[Tuple[pandas.DataFrame, numpy.ndarray], List]:
|
|
| 101 |
|
| 102 |
Return:
|
| 103 |
The train, testing set and valid symptoms.
|
| 104 |
-
|
| 105 |
-
|
| 106 |
"""
|
| 107 |
# Load data
|
| 108 |
df_train = pandas.read_csv(TRAINING_FILENAME)
|
|
|
|
| 31 |
|
| 32 |
# pylint: disable=invalid-name
|
| 33 |
|
|
|
|
|
|
|
| 34 |
|
| 35 |
def pretty_print(
|
| 36 |
inputs, case_conversion=str.title, which_replace: str = "_", to_what: str = " ", delimiter=None
|
|
|
|
| 99 |
|
| 100 |
Return:
|
| 101 |
The train, testing set and valid symptoms.
|
|
|
|
|
|
|
| 102 |
"""
|
| 103 |
# Load data
|
| 104 |
df_train = pandas.read_csv(TRAINING_FILENAME)
|