Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -162,7 +162,7 @@ def get_data():
|
|
162 |
output.append({"gpus":get_gpus(), "total":{"total" : blockchain.get_total_gpu_mem(), "used":get_used_gpus(model_name)}, "chain":json_data+blockchain.chain})
|
163 |
|
164 |
with open('./Chain_data.json', 'w') as outfile:
|
165 |
-
json.dump(output['chain'], outfile)
|
166 |
return output
|
167 |
|
168 |
|
|
|
162 |
output.append({"gpus":get_gpus(), "total":{"total" : blockchain.get_total_gpu_mem(), "used":get_used_gpus(model_name)}, "chain":json_data+blockchain.chain})
|
163 |
|
164 |
with open('./Chain_data.json', 'w') as outfile:
|
165 |
+
json.dump([output['chain']], outfile)
|
166 |
return output
|
167 |
|
168 |
|