Spaces:
Build error
Build error
chore: update clean function
Browse files- app.py +3 -3
- deployment/client.zip +0 -0
- deployment/server.zip +0 -0
- utils.py +1 -1
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import subprocess
|
|
| 2 |
import time
|
| 3 |
from typing import Dict, List, Tuple
|
| 4 |
|
| 5 |
-
import gradio as gr
|
| 6 |
import numpy as np
|
| 7 |
import requests
|
| 8 |
from symptoms_categories import SYMPTOMS_LIST
|
|
@@ -412,7 +412,6 @@ def decrypt_fn(user_id: str, user_symptoms: np.ndarray) -> Dict:
|
|
| 412 |
# Deserialize, decrypt and post-process the encrypted output
|
| 413 |
output = client.deserialize_decrypt_dequantize(encrypted_output)
|
| 414 |
|
| 415 |
-
|
| 416 |
print(output)
|
| 417 |
|
| 418 |
return {
|
|
@@ -719,7 +718,8 @@ if __name__ == "__main__":
|
|
| 719 |
clear_button.click(
|
| 720 |
reset_fn,
|
| 721 |
outputs=[
|
| 722 |
-
|
|
|
|
| 723 |
# disease_box,
|
| 724 |
error_box1,
|
| 725 |
error_box2,
|
|
|
|
| 2 |
import time
|
| 3 |
from typing import Dict, List, Tuple
|
| 4 |
|
| 5 |
+
import gradio as gr # pylint: disable=import-error
|
| 6 |
import numpy as np
|
| 7 |
import requests
|
| 8 |
from symptoms_categories import SYMPTOMS_LIST
|
|
|
|
| 412 |
# Deserialize, decrypt and post-process the encrypted output
|
| 413 |
output = client.deserialize_decrypt_dequantize(encrypted_output)
|
| 414 |
|
|
|
|
| 415 |
print(output)
|
| 416 |
|
| 417 |
return {
|
|
|
|
| 718 |
clear_button.click(
|
| 719 |
reset_fn,
|
| 720 |
outputs=[
|
| 721 |
+
user_vect_box1,
|
| 722 |
+
user_vect_box2,
|
| 723 |
# disease_box,
|
| 724 |
error_box1,
|
| 725 |
error_box2,
|
deployment/client.zip
CHANGED
|
Binary files a/deployment/client.zip and b/deployment/client.zip differ
|
|
|
deployment/server.zip
CHANGED
|
Binary files a/deployment/server.zip and b/deployment/server.zip differ
|
|
|
utils.py
CHANGED
|
@@ -16,7 +16,7 @@ INPUT_BROWSER_LIMIT = 635
|
|
| 16 |
SERVER_URL = "http://localhost:8000/"
|
| 17 |
|
| 18 |
CURRENT_DIR = Path(__file__).parent
|
| 19 |
-
DEPLOYMENT_DIR = CURRENT_DIR / "
|
| 20 |
KEYS_DIR = DEPLOYMENT_DIR / ".fhe_keys"
|
| 21 |
CLIENT_DIR = DEPLOYMENT_DIR / "client_dir"
|
| 22 |
SERVER_DIR = DEPLOYMENT_DIR / "server_dir"
|
|
|
|
| 16 |
SERVER_URL = "http://localhost:8000/"
|
| 17 |
|
| 18 |
CURRENT_DIR = Path(__file__).parent
|
| 19 |
+
DEPLOYMENT_DIR = CURRENT_DIR / "deployment4"
|
| 20 |
KEYS_DIR = DEPLOYMENT_DIR / ".fhe_keys"
|
| 21 |
CLIENT_DIR = DEPLOYMENT_DIR / "client_dir"
|
| 22 |
SERVER_DIR = DEPLOYMENT_DIR / "server_dir"
|