Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
machineuser commited on
Commit ·
badbf33
1
Parent(s): bdf492b
Sync widgets demo
Browse filesFiles changed (14)
- packages/tasks/src/tasks/audio-classification/about.md+1-1
- packages/tasks/src/tasks/audio-to-audio/about.md+1-1
- packages/tasks/src/tasks/automatic-speech-recognition/about.md+1-1
- packages/tasks/src/tasks/conversational/about.md+1-1
- packages/tasks/src/tasks/image-classification/about.md+1-1
- packages/tasks/src/tasks/image-segmentation/about.md+1-1
- packages/tasks/src/tasks/image-to-image/about.md+1-1
- packages/tasks/src/tasks/image-to-text/about.md+1-1
- packages/tasks/src/tasks/summarization/about.md+1-1
- packages/tasks/src/tasks/text-classification/about.md+1-1
- packages/tasks/src/tasks/text-generation/about.md+1-1
- packages/tasks/src/tasks/text-to-image/about.md+1-1
- packages/tasks/src/tasks/text-to-speech/about.md+1-1
- packages/tasks/src/tasks/translation/about.md+1-1
52 unmodified lines5354555657585952 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";const inference = new HfInference(HF_ACCESS_TOKEN);await inference.audioClassification({data: await (await fetch("sample.flac")).blob(),model: "facebook/mms-lid-126",52 unmodified lines5354555657585952 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";const inference = new HfInference(HF_TOKEN);await inference.audioClassification({data: await (await fetch("sample.flac")).blob(),model: "facebook/mms-lid-126",
34 unmodified lines3536373839404134 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";const inference = new HfInference(HF_ACCESS_TOKEN);await inference.audioToAudio({data: await (await fetch("sample.flac")).blob(),model: "speechbrain/sepformer-wham",34 unmodified lines3536373839404134 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";const inference = new HfInference(HF_TOKEN);await inference.audioToAudio({data: await (await fetch("sample.flac")).blob(),model: "speechbrain/sepformer-wham",
53 unmodified lines5455565758596053 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";const inference = new HfInference(HF_ACCESS_TOKEN);await inference.automaticSpeechRecognition({data: await (await fetch("sample.flac")).blob(),model: "openai/whisper-large-v2",53 unmodified lines5455565758596053 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";const inference = new HfInference(HF_TOKEN);await inference.automaticSpeechRecognition({data: await (await fetch("sample.flac")).blob(),model: "openai/whisper-large-v2",
33 unmodified lines3435363738394033 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";const inference = new HfInference(HF_ACCESS_TOKEN);await inference.conversational({model: "facebook/blenderbot-400M-distill",inputs: "Going to the movies tonight - any suggestions?",33 unmodified lines3435363738394033 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";const inference = new HfInference(HF_TOKEN);await inference.conversational({model: "facebook/blenderbot-400M-distill",inputs: "Going to the movies tonight - any suggestions?",
28 unmodified lines2930313233343528 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";const inference = new HfInference(HF_ACCESS_TOKEN);await inference.imageClassification({data: await (await fetch("https://picsum.photos/300/300")).blob(),model: "microsoft/resnet-50",28 unmodified lines2930313233343528 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";const inference = new HfInference(HF_TOKEN);await inference.imageClassification({data: await (await fetch("https://picsum.photos/300/300")).blob(),model: "microsoft/resnet-50",
44 unmodified lines4546474849505144 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";const inference = new HfInference(HF_ACCESS_TOKEN);await inference.imageSegmentation({data: await (await fetch("https://picsum.photos/300/300")).blob(),model: "facebook/detr-resnet-50-panoptic",44 unmodified lines4546474849505144 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";const inference = new HfInference(HF_TOKEN);await inference.imageSegmentation({data: await (await fetch("https://picsum.photos/300/300")).blob(),model: "facebook/detr-resnet-50-panoptic",
42 unmodified lines4344454647484942 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";const inference = new HfInference(HF_ACCESS_TOKEN);await inference.imageToImage({data: await (await fetch("image")).blob(),model: "timbrooks/instruct-pix2pix",42 unmodified lines4344454647484942 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";const inference = new HfInference(HF_TOKEN);await inference.imageToImage({data: await (await fetch("image")).blob(),model: "timbrooks/instruct-pix2pix",
47 unmodified lines4849505152535447 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";const inference = new HfInference(HF_ACCESS_TOKEN);await inference.imageToText({data: await (await fetch("https://picsum.photos/300/300")).blob(),model: "Salesforce/blip-image-captioning-base",47 unmodified lines4849505152535447 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";const inference = new HfInference(HF_TOKEN);await inference.imageToText({data: await (await fetch("https://picsum.photos/300/300")).blob(),model: "Salesforce/blip-image-captioning-base",
24 unmodified lines2526272829303124 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";const inference = new HfInference(HF_ACCESS_TOKEN);const inputs ="Paris is the capital and most populous city of France, with an estimated population of 2,175,601 residents as of 2018, in an area of more than 105 square kilometres (41 square miles). The City of Paris is the centre and seat of government of the region and province of Île-de-France, or Paris Region, which has an estimated population of 12,174,880, or about 18 percent of the population of France as of 2017.";24 unmodified lines2526272829303124 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";const inference = new HfInference(HF_TOKEN);const inputs ="Paris is the capital and most populous city of France, with an estimated population of 2,175,601 residents as of 2018, in an area of more than 105 square kilometres (41 square miles). The City of Paris is the centre and seat of government of the region and province of Île-de-France, or Paris Region, which has an estimated population of 12,174,880, or about 18 percent of the population of France as of 2017.";
116 unmodified lines117118119120121122123116 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";const inference = new HfInference(HF_ACCESS_TOKEN);await inference.conversational({model: "distilbert-base-uncased-finetuned-sst-2-english",inputs: "I love this movie!",116 unmodified lines117118119120121122123116 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";const inference = new HfInference(HF_TOKEN);await inference.conversational({model: "distilbert-base-uncased-finetuned-sst-2-english",inputs: "I love this movie!",
71 unmodified lines7273747576777871 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";const inference = new HfInference(HF_ACCESS_TOKEN);await inference.conversational({model: "distilbert-base-uncased-finetuned-sst-2-english",inputs: "I love this movie!",71 unmodified lines7273747576777871 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";const inference = new HfInference(HF_TOKEN);await inference.conversational({model: "distilbert-base-uncased-finetuned-sst-2-english",inputs: "I love this movie!",
40 unmodified lines4142434445464740 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";const inference = new HfInference(HF_ACCESS_TOKEN);await inference.textToImage({model: "stabilityai/stable-diffusion-2",inputs: "award winning high resolution photo of a giant tortoise/((ladybird)) hybrid, [trending on artstation]",40 unmodified lines4142434445464740 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";const inference = new HfInference(HF_TOKEN);await inference.textToImage({model: "stabilityai/stable-diffusion-2",inputs: "award winning high resolution photo of a giant tortoise/((ladybird)) hybrid, [trending on artstation]",
46 unmodified lines4748495051525346 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";const inference = new HfInference(HF_ACCESS_TOKEN);await inference.textToSpeech({model: "facebook/mms-tts",inputs: "text to generate speech from",46 unmodified lines4748495051525346 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";const inference = new HfInference(HF_TOKEN);await inference.textToSpeech({model: "facebook/mms-tts",inputs: "text to generate speech from",
36 unmodified lines3738394041424336 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";const inference = new HfInference(HF_ACCESS_TOKEN);await inference.translation({model: "t5-base",inputs: "My name is Wolfgang and I live in Berlin",36 unmodified lines3738394041424336 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";const inference = new HfInference(HF_TOKEN);await inference.translation({model: "t5-base",inputs: "My name is Wolfgang and I live in Berlin",
packages/tasks/src/tasks/audio-classification/about.md+1-1
packages/tasks/src/tasks/audio-to-audio/about.md+1-1
packages/tasks/src/tasks/automatic-speech-recognition/about.md+1-1
packages/tasks/src/tasks/conversational/about.md+1-1
packages/tasks/src/tasks/image-classification/about.md+1-1
packages/tasks/src/tasks/image-segmentation/about.md+1-1
packages/tasks/src/tasks/image-to-image/about.md+1-1
packages/tasks/src/tasks/image-to-text/about.md+1-1
packages/tasks/src/tasks/summarization/about.md+1-1
packages/tasks/src/tasks/text-classification/about.md+1-1
packages/tasks/src/tasks/text-generation/about.md+1-1
packages/tasks/src/tasks/text-to-image/about.md+1-1
packages/tasks/src/tasks/text-to-speech/about.md+1-1
packages/tasks/src/tasks/translation/about.md+1-1