Update app.py
Browse files
app.py
CHANGED
@@ -21,8 +21,8 @@ def load_data():
|
|
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 =
|
25 |
-
curves =
|
26 |
# curves = load_dataset("cmudrc/wave-energy", data_files="curves.zip", split='train').to_pandas().drop(labels="index", axis=1)
|
27 |
# geometry = load_dataset("cmudrc/wave-energy", data_files="geometry.zip", split='train').to_pandas().drop(labels="index", axis=1)
|
28 |
|
|
|
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 = numpy.reshape(json_data['geometry'], (5000, 32*32*32))
|
25 |
+
curves = numpy.reshape(json_data['curves'], (5000, 3*64))
|
26 |
# curves = load_dataset("cmudrc/wave-energy", data_files="curves.zip", split='train').to_pandas().drop(labels="index", axis=1)
|
27 |
# geometry = load_dataset("cmudrc/wave-energy", data_files="geometry.zip", split='train').to_pandas().drop(labels="index", axis=1)
|
28 |
|