Spaces:
Sleeping
Sleeping
update
Browse files
app.py
CHANGED
@@ -28,9 +28,9 @@ from pathlib import Path
|
|
28 |
import zipfile
|
29 |
import gdown
|
30 |
|
|
|
31 |
np.random.seed(int(time.time()))
|
32 |
csv.field_size_limit(sys.maxsize)
|
33 |
-
np.random.seed(int(time.time()))
|
34 |
|
35 |
|
36 |
###############################################################################################################
|
@@ -134,6 +134,8 @@ def preprocessing(data, type_of_nns, current_index, history, username, seed):
|
|
134 |
data = generate_data(type_of_nns, seed) # Pass the seed here
|
135 |
print("data generated")
|
136 |
|
|
|
|
|
137 |
# append a random text to the username
|
138 |
random_text = "".join(
|
139 |
random.choice(string.ascii_lowercase + string.digits) for _ in range(8)
|
|
|
28 |
import zipfile
|
29 |
import gdown
|
30 |
|
31 |
+
random.seed(int(time.time()))
|
32 |
np.random.seed(int(time.time()))
|
33 |
csv.field_size_limit(sys.maxsize)
|
|
|
34 |
|
35 |
|
36 |
###############################################################################################################
|
|
|
134 |
data = generate_data(type_of_nns, seed) # Pass the seed here
|
135 |
print("data generated")
|
136 |
|
137 |
+
# set random seed to time
|
138 |
+
random.seed(int(time.time()))
|
139 |
# append a random text to the username
|
140 |
random_text = "".join(
|
141 |
random.choice(string.ascii_lowercase + string.digits) for _ in range(8)
|