kcelia commited on
Commit
be82820
1 Parent(s): 58df7f1

chore: conformance update

Browse files
Files changed (2) hide show
  1. app.py +4 -4
  2. server.py +1 -1
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import subprocess
2
  import time
3
  from pathlib import Path
4
- from typing import List, Dict, Tuple, Union
5
 
6
  import gradio as gr
7
  import numpy as np
@@ -10,10 +10,10 @@ import requests
10
  from symptoms_categories import SYMPTOMS_LIST
11
  from utils import ( # pylint: disable=no-name-in-module
12
  CLIENT_DIR,
 
 
13
  INPUT_BROWSER_LIMIT,
14
  KEYS_DIR,
15
- DEPLOYMENT_DIR,
16
- CURRENT_DIR,
17
  SERVER_URL,
18
  TARGET_COLUMNS,
19
  TRAINING_FILENAME,
@@ -290,7 +290,7 @@ def get_output_fn(user_id, user_symptoms):
290
  ) as response:
291
  if response.ok:
292
  print(f"Receive Data: {response.ok=}")
293
-
294
  encrypted_output = response.content
295
 
296
  # Save the encrypted output to bytes in a file as it is too large to pass through
 
1
  import subprocess
2
  import time
3
  from pathlib import Path
4
+ from typing import Dict, List, Tuple, Union
5
 
6
  import gradio as gr
7
  import numpy as np
 
10
  from symptoms_categories import SYMPTOMS_LIST
11
  from utils import ( # pylint: disable=no-name-in-module
12
  CLIENT_DIR,
13
+ CURRENT_DIR,
14
+ DEPLOYMENT_DIR,
15
  INPUT_BROWSER_LIMIT,
16
  KEYS_DIR,
 
 
17
  SERVER_URL,
18
  TARGET_COLUMNS,
19
  TRAINING_FILENAME,
 
290
  ) as response:
291
  if response.ok:
292
  print(f"Receive Data: {response.ok=}")
293
+
294
  encrypted_output = response.content
295
 
296
  # Save the encrypted output to bytes in a file as it is too large to pass through
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