diff --git a/blockchain/generate_data.py b/blockchain/generate_data.py
index 1dba046..3aaf5ac 100644
--- a/blockchain/generate_data.py
+++ b/blockchain/generate_data.py
@@ -40,7 +40,7 @@
test_data = dataset.data
for i, tensor in enumerate(test_data):
- img = transforms.ToPILImage()(tensor)
+ img = transforms.ToPILImage()(test_data[1])
base64_img = base64.b64encode(img.tobytes())
img.save("data/" + str(i) + ".png")
break
diff --git a/client/src/App.js b/client/src/App.js
index abd9b2f..0a8fa9a 100644
--- a/client/src/App.js
+++ b/client/src/App.js
@@ -25,8 +25,8 @@ function App() {
{auth ? null :
Create Dataset
+ setName(e.target.value)} + /> + setDescription(e.target.value)} + /> + +{dataset.name}
-{dataset.description}
+Dataset name: {dataset.name}
++ Description: {dataset.description} +
- Link + Link
-Images:
-{image.class}
-- {image.value.substring(0, 22) === - "data:image/png;base64," ? ( - - ) : ( - image.value - )} -
-{image.approved ? "Approved" : "Not Approved"}
-{image.class}
+ + +{item.about}
)} */} {"ID:" + id} diff --git a/client/src/styles/pages/ContributePage.module.css b/client/src/styles/pages/ContributePage.module.css index 5adaf6d..e4d171b 100644 --- a/client/src/styles/pages/ContributePage.module.css +++ b/client/src/styles/pages/ContributePage.module.css @@ -6,7 +6,7 @@ width: 40vw; padding-bottom: 30px; overflow-x: visible; - overflow-y:auto; + overflow-y: auto; } .header { @@ -15,31 +15,32 @@ } .image { - width:90%; + width: 90%; object-fit: contain; } .file { - margin: 1rem auto; - display: block; + margin: 1rem auto; + display: block; } .label { - display: block; - margin: 2rem auto; - padding: 1rem; - border-radius: 1rem; + display: block; + margin: 2rem auto; + padding: 1rem; + border-radius: 1rem; + height: 5px; } .uploader { - font-family: Verdana, sans-serif; - border-radius: 30px; - border-color: black; - width: 300px; - height: 40px; - font-size: 12pt; - color: 282c34; - margin: 0 px; - bottom: 0px; - background-color: snow; + font-family: Verdana, sans-serif; + border-radius: 30px; + border-color: black; + width: 300px; + height: 40px; + font-size: 12pt; + color: 282c34; + margin: 0 px; + bottom: 0px; + background-color: snow; } diff --git a/client/src/styles/pages/CreateDatasetPage.module.css b/client/src/styles/pages/CreateDatasetPage.module.css new file mode 100644 index 0000000..00fb2db --- /dev/null +++ b/client/src/styles/pages/CreateDatasetPage.module.css @@ -0,0 +1,36 @@ +.create { + background-color: #282c34; + color: snow; + margin: 50px; + border-radius: 30px; + width: 40vw; + padding-bottom: 30px; + overflow-x: visible; + overflow-y: auto; +} + +.header { + color: snow; + margin-top: 30px; + margin-bottom: 80px; +} + +.box { + display: block; + margin: 1rem auto; + padding: 1rem; + width: 200px; + border-radius: 1rem; +} + +.button { + font-family: Verdana, sans-serif; + border-radius: 30px; + border-color: black; + width: 300px; + height: 40px; + font-size: 12pt; + color: 282c34; + margin-top: 50px; + background-color: snow; +} \ No newline at end of file diff --git a/client/src/styles/pages/DashboardPage.module.css b/client/src/styles/pages/DashboardPage.module.css index e69de29..dcc5ce3 100644 --- a/client/src/styles/pages/DashboardPage.module.css +++ b/client/src/styles/pages/DashboardPage.module.css @@ -0,0 +1,7 @@ +.list { + text-align: left; +} + +.datasets { + +} \ No newline at end of file