Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ def load_data():
|
|
| 18 |
from datasets import load_dataset
|
| 19 |
|
| 20 |
|
| 21 |
-
data = load_dataset("cmudrc/wave-energy", data_files="data.zip")
|
| 22 |
curvey_curves = [numpy.array(x)/1000000 for x in data['curves']]
|
| 23 |
round_geometry = [numpy.array(x) for x in data['geometry']]
|
| 24 |
geometry = [x.flatten() for x in round_geometry]
|
|
|
|
| 18 |
from datasets import load_dataset
|
| 19 |
|
| 20 |
|
| 21 |
+
data = load_dataset("cmudrc/wave-energy", data_files=["data.zip"], split='train')
|
| 22 |
curvey_curves = [numpy.array(x)/1000000 for x in data['curves']]
|
| 23 |
round_geometry = [numpy.array(x) for x in data['geometry']]
|
| 24 |
geometry = [x.flatten() for x in round_geometry]
|