Update app.py
Browse files
app.py
CHANGED
@@ -1076,7 +1076,7 @@ def main():
|
|
1076 |
|
1077 |
if st.button("Start Training"):
|
1078 |
def client_fn(cid):
|
1079 |
-
return clients[int(cid)]
|
1080 |
|
1081 |
def weighted_average(metrics):
|
1082 |
accuracies = [num_examples * m["accuracy"] for num_examples, m in metrics]
|
|
|
1076 |
|
1077 |
if st.button("Start Training"):
|
1078 |
def client_fn(cid):
|
1079 |
+
return clients[int(cid)].to_client()
|
1080 |
|
1081 |
def weighted_average(metrics):
|
1082 |
accuracies = [num_examples * m["accuracy"] for num_examples, m in metrics]
|