feat: new templates

This commit is contained in:
loks0n committed 2024-05-02 13:18:05 +01:00
1 parent ac2aa4261e
commit dacaef1c6e
1 file changed
+100 -9
+100 -9
View File
@@ -958,7 +958,7 @@ export const marketplace: MarketplaceTemplate[] = [
]
},
{
icon: 'icon-chip',
icon: 'icon-chat',
id: 'text-generation-with-huggingface',
name: 'Text generation',
tagline: 'Generate text using the Hugging Face inference API.',
@@ -991,7 +991,7 @@ export const marketplace: MarketplaceTemplate[] = [
]
},
{
icon: 'icon-chip',
icon: 'icon-translate',
id: 'language-translation-with-huggingface',
name: 'Language translation',
tagline: 'Translate text using the Hugging Face inference API.',
@@ -1024,7 +1024,7 @@ export const marketplace: MarketplaceTemplate[] = [
]
},
{
icon: 'icon-chip',
icon: 'icon-eye',
id: 'image-classification-with-huggingface',
name: 'Image classification',
tagline: 'Classify images using the Hugging Face inference API.',
@@ -1097,7 +1097,7 @@ export const marketplace: MarketplaceTemplate[] = [
]
},
{
icon: 'icon-chip',
icon: 'icon-eye',
id: 'object-detection-with-huggingface',
name: 'Object detection',
tagline: 'Detect objects in images using the Hugging Face inference API.',
@@ -1170,7 +1170,7 @@ export const marketplace: MarketplaceTemplate[] = [
]
},
{
icon: 'icon-chip',
icon: 'icon-text',
id: 'speech-recognition-with-huggingface',
name: 'Speech recognition',
tagline: 'Transcribe audio to text using the Hugging Face inference API.',
@@ -1243,7 +1243,7 @@ export const marketplace: MarketplaceTemplate[] = [
]
},
{
icon: 'icon-chip',
icon: 'icon-chat',
id: 'text-to-speech-with-huggingface',
name: 'Text to speech',
tagline: 'Convert text to speech using the Hugging Face inference API.',
@@ -1350,7 +1350,7 @@ export const marketplace: MarketplaceTemplate[] = [
]
},
{
icon: 'icon-chip',
icon: 'icon-chat-alt-2',
id: 'chat-with-perplexity-ai',
name: 'Chat with Perplexity AI',
tagline: 'Create a chatbot using the Perplexity AI API.',
@@ -1424,7 +1424,7 @@ export const marketplace: MarketplaceTemplate[] = [
]
},
{
icon: 'icon-chip',
icon: 'icon-document-search',
id: 'sync-with-pinecone',
name: 'Sync with Pinecone',
tagline: "Sync your Appwrite database with Pinecone's vector database.",
@@ -1580,7 +1580,7 @@ export const marketplace: MarketplaceTemplate[] = [
]
},
{
icon: 'icon-chip',
icon: 'icon-chat',
id: 'speak-with-elevenlabs',
name: 'Speak with ElevenLabs',
tagline: 'Convert text to speech using the ElevenLabs API.',
@@ -1648,6 +1648,97 @@ export const marketplace: MarketplaceTemplate[] = [
type: 'text'
}
]
},
{
icon: 'icon-music-note',
id: 'music-generation-with-huggingface',
name: 'Music generation',
tagline: 'Generate music from a text prompt using the Hugging Face inference API.',
permissions: ['any'],
events: [],
cron: '',
timeout: 15,
usecases: ['AI'],
runtimes: [
...getRuntimes(
TemplateRuntimes.NODE,
'npm install && npm run setup',
'src/main.js',
'node/music-generation-with-huggingface'
)
],
instructions: `For documentation and instructions check out <a target="_blank" rel="noopener noreferrer" class="link" href="https://github.com/appwrite/templates/tree/main/node/music-generation-with-huggingface">file</a>.`,
vcsProvider: 'github',
providerRepositoryId: 'templates',
providerOwner: 'appwrite',
providerBranch: 'main',
variables: [
{
name: 'APPWRITE_API_KEY',
description: `The API Key to authenticate against Appwrite's server APIs. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/advanced/platform/api-keys">Learn more</a>.`,
value: '',
placeholder: 'd1efb...aec35',
required: true,
type: 'password'
},
{
name: 'APPWRITE_ENDPOINT',
description: `The URL endpoint of the Appwrite server. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/references#api">Learn more</a>.`,
value: 'https://cloud.appwrite.io/v1',
placeholder: 'https://cloud.appwrite.io/v1',
required: false,
type: 'url'
},
{
name: 'APPWRITE_BUCKET_ID',
description: `The ID of the bucket where generated music is stored. <a class="u-bold" target="_blank" href="https://appwrite.io/docs/products/storage/buckets">Learn more</a>.`,
value: 'generated_music',
placeholder: 'generated_music',
required: false,
type: 'text'
},
{
name: 'HUGGINGFACE_ACCESS_TOKEN',
description: `Secret for sending requests to the Hugging Face API. <a class="u-bold" target="_blank" href="https://huggingface.co/docs/api-inference/en/quicktour#get-your-api-token">Learn more</a>.`,
placeholder: 'hf_MUvn...',
required: true,
type: 'password'
}
]
},
{
icon: 'icon-chip',
id: 'generate-with-fal-ai',
name: 'Generate with fal.ai',
tagline: "Generate images using fal.ai's API.",
permissions: ['any'],
events: [],
cron: '',
timeout: 300,
usecases: ['AI'],
runtimes: [
...getRuntimes(
TemplateRuntimes.NODE,
'npm install',
'src/main.js',
'node/generate-with-fal-ai'
)
],
instructions: `For documentation and instructions check out <a target="_blank" rel="noopener noreferrer" class="link" href="https://github.com/appwrite/templates/tree/main/node/generate-with-fal-ai">file</a>.`,
vcsProvider: 'github',
providerRepositoryId: 'templates',
providerOwner: 'appwrite',
providerBranch: 'main',
variables: [
{
name: 'FAL_API_KEY',
description: `A unique key used to authenticate with the fal.ai API. <a class="u-bold" target="_blank" href="https://fal.ai/docs/authentication/key-based">Learn more</a>.`,
value: '',
placeholder: 'd1efb...aec35',
required: true,
type: 'password'
}
]
}
];