Skip to content

Commit

Permalink
chore: dvcx to datachain (#5261)
Browse files Browse the repository at this point in the history
  • Loading branch information
yathomasi authored Jun 13, 2024
1 parent cf310f3 commit 046a901
Show file tree
Hide file tree
Showing 11 changed files with 39 additions and 39 deletions.
8 changes: 4 additions & 4 deletions content/data/dvcx.yml → content/data/datachain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
Datasets are getting larger, but the ability to iterate rapidly and
efficiently is as important as ever.
terminal: |
from dvcx.query import C, DatasetQuery
from dvcx.lib.webdataset import WebDataset
from dvcx.lib.gpt4_vision import DescribeImage
from datachain.query import C, DatasetQuery
from datachain.lib.webdataset import WebDataset
from datachain.lib.gpt4_vision import DescribeImage
prompt = "How many people in the image?"
Expand All @@ -21,6 +21,6 @@
Save the results of a query in a dataset that you can use to train your ML
models.
terminal: |
$ dvcx query my-query.py my-dataset
$ datachain query my-query.py my-dataset
..........
Dataset 'my-dataset' created
14 changes: 7 additions & 7 deletions plugins/landing-page/gatsby-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const onCreateNode: GatsbyNode['onCreateNode'] = async api => {
if (
node.internal.type === 'File' &&
node.sourceInstanceName === 'data' &&
(node.relativePath === 'dvc.yml' || node.relativePath === 'dvcx.yml')
(node.relativePath === 'dvc.yml' || node.relativePath === 'datachain.yml')
) {
const fileContent = await loadNodeContent(node)
const homeSlides = yaml.load(fileContent)
Expand All @@ -74,19 +74,19 @@ export const onCreateNode: GatsbyNode['onCreateNode'] = async api => {
}
createNode(DvcSlide)
createParentChildLink({ child: DvcSlide, parent: node })
} else if (node.relativePath === 'dvcx.yml') {
const DvcxSlide = {
id: createNodeId('DvcxSlide'),
} else if (node.relativePath === 'datachain.yml') {
const DatachainSlide = {
id: createNodeId('DatachainSlide'),
parent: node.id,
children: [],
internal: {
type: 'DvcxSlide',
type: 'DatachainSlide',
contentDigest: node.internal.contentDigest
},
slides: processedSlides
}
createNode(DvcxSlide)
createParentChildLink({ child: DvcxSlide, parent: node })
createNode(DatachainSlide)
createParentChildLink({ child: DatachainSlide, parent: node })
}
}
}
2 changes: 1 addition & 1 deletion src/components/Home/Hero/BetterTogether/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const BetterTogether = () => {
return (
<HeroContainer className="py-14 bg-blue-100">
<h2 className={cn('text-center text-3xl font-medium')}>
DVC<sup>X</sup> and DVC: Better Together
Datachain and DVC: Better Together
</h2>
<p className={cn('mt-8', 'text-xl font-normal')}>
Build the datasets you need without modifying your data sources. Create
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
import React from 'react'
import HeroContainer from '../../../HeroContainer'
import { cn } from '../../../../utils'
import DvcxSlides from '../../LandingHero/DvcxSlides'
import DatachainSlides from '../../LandingHero/DatachainSlides'
import GetOnTheWaitlistForm from '../GetOnTheWaitlist/Form'

const GetStartedWithDvcX = () => {
const GetStartedWithDatachain = () => {
return (
<HeroContainer className="py-10 px-6" id="get-started-dvcx">
<div className="flex items-end md:justify-center">
<HeroContainer className="py-10 px-6" id="get-started-datachain">
<div className="flex items-center md:justify-center">
<h1 className={cn('text-2xl font-medium')}>Get Started with</h1>
<img src="/img/logos/dvcx.svg" alt="DVCx Logo" className="h-12 -ml-1" />
<span className="inline-block text-5xl ml-1">🔗</span>
</div>
<DvcxSlides />
<DatachainSlides />
<div className={cn('flex flex-col items-center justify-center w-full')}>
<GetOnTheWaitlistForm />
</div>
</HeroContainer>
)
}

export default GetStartedWithDvcX
export default GetStartedWithDatachain
12 changes: 6 additions & 6 deletions src/components/Home/Hero/HeroSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const HeroSection = () => {
{/* Title Section */}
<SectionWrapper>
<Section>
<img src="/img/logos/dvcx.svg" alt="DVCx Logo" className="h-28" />
<span className="inline-block text-8xl">🔗</span>
<div
className={cn(
'flex flex-col gap-4 flex-1 justify-between',
Expand Down Expand Up @@ -149,7 +149,7 @@ const HeroSection = () => {
className={styles.heroViz}
alt="Visualization"
/>
<div className={cn(styles.heroDesc, styles.dvcxDesc)}>
<div className={cn(styles.heroDesc, styles.datachainDesc)}>
<strong>Explore</strong> and <strong>enrich</strong> annotated
datasets with custom embeddings, auto-labeling, and bias removal at
billion-file scale — without modifying your data.
Expand All @@ -170,12 +170,12 @@ const HeroSection = () => {
<CTAButton
className="bg-dark text-light"
onClick={() => {
navigate('#get-started-dvcx', { state: { focusInput: true } })
navigate('#get-started-datachain', {
state: { focusInput: true }
})
}}
>
<span>
Learn about DVC<sup>X</sup>
</span>
<span>Learn about Datachain</span>
<ArrowDown className="w-4 md:w-6 animate-bounce" />
</CTAButton>
</Section>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Home/Hero/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import HeroTitleSection from './HeroTitleSection'
import HeroSection from './HeroSection'
import GetStartedWithDvcX from './GetStarted/GetStartedWithDvcX'
import GetStartedWithDatachain from './GetStarted/GetStartedWithDatachain'
import GetStartedWithDvc from './GetStarted/GetStartedWithDvc'
import BetterTogether from './BetterTogether'

Expand All @@ -10,7 +10,7 @@ const Hero = () => {
<>
<HeroTitleSection />
<HeroSection />
<GetStartedWithDvcX />
<GetStartedWithDatachain />
<BetterTogether />
<GetStartedWithDvc />
</>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Home/Hero/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
}
}

.dvcxDesc {
.datachainDesc {
grid-column: 1/2;
grid-row: 2;
}
Expand All @@ -55,7 +55,7 @@
grid-row: 1;
}

.dvcxDesc {
.datachainDesc {
grid-column: 1/2;
grid-row: 1;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import React from 'react'
import Slides, { ISlide } from './Slides'
import { graphql, useStaticQuery } from 'gatsby'

const DvcxSlides = () => {
const DatachainSlides = () => {
const {
dvcxSlide: { slides }
datachainSlide: { slides }
} = useStaticQuery(graphql`
query {
dvcxSlide {
datachainSlide {
slides {
title
description
Expand All @@ -16,12 +16,12 @@ const DvcxSlides = () => {
}
}
`) as {
dvcxSlide: {
datachainSlide: {
slides: ISlide[]
}
}

return <Slides slides={slides} terminalSide="left" />
}

export default DvcxSlides
export default DatachainSlides
4 changes: 0 additions & 4 deletions src/components/Home/styles.module.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
html {
scroll-behavior: smooth;
}

.heroContainer {
@apply pt-14;

Expand Down
4 changes: 4 additions & 0 deletions src/styles/global.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

html {
scroll-behavior: smooth;
}
2 changes: 1 addition & 1 deletion static/img/landing/Hero Visualization.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 046a901

Please sign in to comment.