Update predictor.py
Browse files- predictor.py +0 -7
predictor.py
CHANGED
@@ -4,7 +4,6 @@ import numpy as np
|
|
4 |
from concrete.ml.deployment import FHEModelClient, FHEModelServer
|
5 |
import logging
|
6 |
import gradio as gr
|
7 |
-
import time
|
8 |
|
9 |
# Configure logging
|
10 |
logging.basicConfig(level=logging.INFO)
|
@@ -44,12 +43,6 @@ def predict():
|
|
44 |
str: The prediction result.
|
45 |
str: A message indicating the status of the prediction.
|
46 |
"""
|
47 |
-
start = time.time()
|
48 |
-
i = 0
|
49 |
-
while time.time() - start < 10:
|
50 |
-
i+=1
|
51 |
-
if i!=0:
|
52 |
-
return "TEST", "DOUBLE TEST"
|
53 |
|
54 |
global encrypted_data, encrypted_prediction
|
55 |
if encrypted_data is None:
|
|
|
4 |
from concrete.ml.deployment import FHEModelClient, FHEModelServer
|
5 |
import logging
|
6 |
import gradio as gr
|
|
|
7 |
|
8 |
# Configure logging
|
9 |
logging.basicConfig(level=logging.INFO)
|
|
|
43 |
str: The prediction result.
|
44 |
str: A message indicating the status of the prediction.
|
45 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
|
47 |
global encrypted_data, encrypted_prediction
|
48 |
if encrypted_data is None:
|