Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -78,7 +78,8 @@ def keygen(eval_key, user_id):
|
|
78 |
|
79 |
print("Initializing FHEModelClient...")
|
80 |
# Let's create a user_id
|
81 |
-
global user_id
|
|
|
82 |
fhe_api = FHEModelClient(f"fhe_model", f".fhe_keys/{user_id}")
|
83 |
fhe_api.load()
|
84 |
|
|
|
78 |
|
79 |
print("Initializing FHEModelClient...")
|
80 |
# Let's create a user_id
|
81 |
+
global user_id
|
82 |
+
user_id = numpy.random.randint(0, 2**32)
|
83 |
fhe_api = FHEModelClient(f"fhe_model", f".fhe_keys/{user_id}")
|
84 |
fhe_api.load()
|
85 |
|