ZamaClinik / app.py
gregoiregllt's picture
delete a lot
0ebbd8e
raw
history blame
816 Bytes
from fastapi import FastAPI, File, Form, UploadFile, Body
from fastapi.responses import JSONResponse, Response
from concrete.ml.deployment import FHEModelServer
import numpy as np
from pydantic import BaseModel
from concrete.ml.deployment import FHEModelClient
import subprocess
from pathlib import Path
from utils import (
CLIENT_DIR,
CURRENT_DIR,
DEPLOYMENT_DIR,
SERVER_DIR,
INPUT_BROWSER_LIMIT,
KEYS_DIR,
SERVER_URL,
TARGET_COLUMNS,
TRAINING_FILENAME,
clean_directory,
get_disease_name,
load_data,
pretty_print,
)
import time
from typing import List
# Load the FHE server
# FHE_SERVER = FHEModelServer(DEPLOYMENT_DIR)
class Symptoms(BaseModel):
user_symptoms: List[str]
app = FastAPI()
@app.get("/")
def greet_json():
return {"Hello": "World!"}