Update app.py
Browse files
app.py
CHANGED
@@ -234,7 +234,7 @@ import streamlit
|
|
234 |
|
235 |
# If you're curious of all the loggers
|
236 |
|
237 |
-
|
238 |
fl.common.logger.configure(identifier="myFlowerExperiment", filename="./log.txt")
|
239 |
|
240 |
def load_data(dataset_name, train_size=20, test_size=20, num_clients=2):
|
|
|
234 |
|
235 |
# If you're curious of all the loggers
|
236 |
|
237 |
+
DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
238 |
fl.common.logger.configure(identifier="myFlowerExperiment", filename="./log.txt")
|
239 |
|
240 |
def load_data(dataset_name, train_size=20, test_size=20, num_clients=2):
|