Skip to content

Commit

Permalink
fix(predictions): remove from rn (aws-amplify#6431)
Browse files Browse the repository at this point in the history
Co-authored-by: Ashwin Kumar <[email protected]>
  • Loading branch information
ashwinkumar6 and Ashwin Kumar authored Nov 16, 2023
1 parent ea2b7c4 commit 8bfa003
Show file tree
Hide file tree
Showing 10 changed files with 69 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ import { getCustomStaticPath } from '@/utils/getCustomStaticPath';

export const meta = {
title: 'Example application',
description:
'Sample code for using the Predictions category in Amplify.',
platforms: ['javascript', 'react-native', 'angular', 'nextjs', 'react', 'vue']
description: 'Sample code for using the Predictions category in Amplify.',
platforms: ['javascript', 'angular', 'nextjs', 'react', 'vue']
};

export const getStaticPaths = async () => {
Expand All @@ -25,7 +24,6 @@ import sampleJs from '/src/fragments/lib/predictions/js/sample.mdx';
<Fragments
fragments={{
javascript: sampleJs,
'react-native': sampleJs,
angular: sampleJs,
nextjs: sampleJs,
react: sampleJs,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@ import { getCustomStaticPath } from '@/utils/getCustomStaticPath';

export const meta = {
title: 'Identify entities from images',
description:
'Learn how to identify entities from an image using Amplify.',
platforms: ['javascript', 'react-native', 'swift', 'android', 'angular', 'nextjs', 'react', 'vue']
description: 'Learn how to identify entities from an image using Amplify.',
platforms: [
'javascript',
'swift',
'android',
'angular',
'nextjs',
'react',
'vue'
]
};

export const getStaticPaths = async () => {
Expand All @@ -27,7 +34,6 @@ import identifyEntityAndroid from '/src/fragments/lib/predictions/android/identi
<Fragments
fragments={{
javascript: identifyEntityJs,
'react-native': identifyEntityJs,
angular: identifyEntityJs,
nextjs: identifyEntityJs,
react: identifyEntityJs,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@ export const meta = {
title: 'Identify text',
description:
'Learn how to identify text from images and documents in your application using AWS Amplify.',
platforms: ['javascript', 'react-native', 'swift', 'android', 'angular', 'nextjs', 'react', 'vue']
platforms: [
'javascript',
'swift',
'android',
'angular',
'nextjs',
'react',
'vue'
]
};

export const getStaticPaths = async () => {
Expand All @@ -27,7 +35,6 @@ import identifyTextAndroid from '/src/fragments/lib/predictions/android/identify
<Fragments
fragments={{
javascript: identifyTextJs,
'react-native': identifyTextJs,
angular: identifyTextJs,
nextjs: identifyTextJs,
react: identifyTextJs,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { getChildPageNodes } from '@/utils/getChildPageNodes';

export const meta = {
title: 'AI/ML Predictions',
description:'The Predictions category enables you to integrate machine learning in your application without any prior machine learning experience. The Predictions category comes with built-in support for both online and offline use cases.',
description:
'The Predictions category enables you to integrate machine learning in your application without any prior machine learning experience. The Predictions category comes with built-in support for both online and offline use cases.',
platforms: [
'android',
'angular',
'javascript',
'nextjs',
'react',
'react-native',
'swift',
'vue'
],
Expand All @@ -37,7 +37,6 @@ import js0 from '/src/fragments/lib/predictions/js/intro.mdx';
<Fragments
fragments={{
javascript: js0,
'react-native': js0,
angular: js0,
nextjs: js0,
react: js0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@ export const meta = {
title: 'Interpret sentiment',
description:
'Learn how to determine key phrases, sentiment, language, syntax, and entities from text using Amplify.',
platforms: ['javascript', 'react-native', 'swift', 'android', 'angular', 'nextjs', 'react', 'vue']
platforms: [
'javascript',
'swift',
'android',
'angular',
'nextjs',
'react',
'vue'
]
};

export const getStaticPaths = async () => {
Expand All @@ -27,7 +35,6 @@ import interpretAndroid from '/src/fragments/lib/predictions/android/interpret.m
<Fragments
fragments={{
javascript: interpretJs,
'react-native': interpretJs,
angular: interpretJs,
nextjs: interpretJs,
react: interpretJs,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@ export const meta = {
title: 'Label objects in an image',
description:
'Learn more about how to detect labels in an image using Amplify. For example you can detect if an image has objects such as chairs, desks etc.',
platforms: ['javascript', 'react-native', 'swift', 'android', 'angular', 'nextjs', 'react', 'vue']
platforms: [
'javascript',
'swift',
'android',
'angular',
'nextjs',
'react',
'vue'
]
};

export const getStaticPaths = async () => {
Expand All @@ -27,7 +35,6 @@ import labelImageAndroid from '/src/fragments/lib/predictions/android/label-imag
<Fragments
fragments={{
javascript: labelImageJs,
'react-native': labelImageJs,
angular: labelImageJs,
nextjs: labelImageJs,
react: labelImageJs,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@ export const meta = {
title: 'Set up Predictions',
description:
'Get started with integrating ML capabilities into your application using Amplify',
platforms: ['javascript', 'react-native', 'swift', 'android', 'angular', 'nextjs', 'react', 'vue']
platforms: [
'javascript',
'swift',
'android',
'angular',
'nextjs',
'react',
'vue'
]
};

export const getStaticPaths = async () => {
Expand All @@ -26,7 +34,6 @@ import gettingStartedCommon from '/src/fragments/lib/predictions/native_common/g
<Fragments
fragments={{
javascript: gettingStartedJs,
'react-native': gettingStartedJs,
angular: gettingStartedJs,
nextjs: gettingStartedJs,
react: gettingStartedJs,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@ export const meta = {
title: 'Text-to-speech',
description:
'Learn more about how to integrate text-to-speech capabilities into your application using Amplify.',
platforms: ['javascript', 'react-native', 'swift', 'android', 'angular', 'nextjs', 'react', 'vue']
platforms: [
'javascript',
'swift',
'android',
'angular',
'nextjs',
'react',
'vue'
]
};

export const getStaticPaths = async () => {
Expand All @@ -27,7 +35,6 @@ import textSpeechAndroid from '/src/fragments/lib/predictions/android/text-speec
<Fragments
fragments={{
javascript: textSpeechJs,
'react-native': textSpeechJs,
angular: textSpeechJs,
nextjs: textSpeechJs,
react: textSpeechJs,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const meta = {
title: 'Transcribe audio to text',
description:
'Learn more about how to transcribe audio to text (also known as speech-to-text) for your application using Amplify',
platforms: ['javascript', 'react-native', 'swift', 'angular', 'nextjs', 'react', 'vue']
platforms: ['javascript', 'swift', 'angular', 'nextjs', 'react', 'vue']
};

export const getStaticPaths = async () => {
Expand All @@ -26,7 +26,6 @@ import transcribeIOS from '/src/fragments/lib/predictions/ios/transcribe.mdx';
<Fragments
fragments={{
javascript: transcribeJs,
'react-native': transcribeJs,
angular: transcribeJs,
nextjs: transcribeJs,
react: transcribeJs,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@ export const meta = {
title: 'Translate language',
description:
'Learn more about how to integrate translation capabilities for your application using Amplify',
platforms: ['javascript', 'react-native', 'swift', 'android', 'angular', 'nextjs', 'react', 'vue']
platforms: [
'javascript',
'swift',
'android',
'angular',
'nextjs',
'react',
'vue'
]
};

export const getStaticPaths = async () => {
Expand All @@ -27,7 +35,6 @@ import translateAndroid from '/src/fragments/lib/predictions/android/translate.m
<Fragments
fragments={{
javascript: translateJs,
'react-native': translateJs,
angular: translateJs,
nextjs: translateJs,
react: translateJs,
Expand Down

0 comments on commit 8bfa003

Please sign in to comment.