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 lines535455565657585952 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";
const inference = new HfInference(HF_ACCESS_TOKEN);const inference = new HfInference(HF_TOKEN);await inference.audioClassification({ data: await (await fetch("sample.flac")).blob(), model: "facebook/mms-lid-126",34 unmodified lines353637383839404134 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";
const inference = new HfInference(HF_ACCESS_TOKEN);const inference = new HfInference(HF_TOKEN);await inference.audioToAudio({ data: await (await fetch("sample.flac")).blob(), model: "speechbrain/sepformer-wham",53 unmodified lines545556575758596053 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";
const inference = new HfInference(HF_ACCESS_TOKEN);const inference = new HfInference(HF_TOKEN);await inference.automaticSpeechRecognition({ data: await (await fetch("sample.flac")).blob(), model: "openai/whisper-large-v2",33 unmodified lines343536373738394033 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";
const inference = new HfInference(HF_ACCESS_TOKEN);const inference = new HfInference(HF_TOKEN);await inference.conversational({ model: "facebook/blenderbot-400M-distill", inputs: "Going to the movies tonight - any suggestions?",28 unmodified lines293031323233343528 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";
const inference = new HfInference(HF_ACCESS_TOKEN);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 lines454647484849505144 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";
const inference = new HfInference(HF_ACCESS_TOKEN);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 lines434445464647484942 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";
const inference = new HfInference(HF_ACCESS_TOKEN);const inference = new HfInference(HF_TOKEN);await inference.imageToImage({ data: await (await fetch("image")).blob(), model: "timbrooks/instruct-pix2pix",47 unmodified lines484950515152535447 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";
const inference = new HfInference(HF_ACCESS_TOKEN);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 lines252627282829303124 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";
const inference = new HfInference(HF_ACCESS_TOKEN);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 lines117118119120120121122123116 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";
const inference = new HfInference(HF_ACCESS_TOKEN);const inference = new HfInference(HF_TOKEN);await inference.conversational({ model: "distilbert-base-uncased-finetuned-sst-2-english", inputs: "I love this movie!",71 unmodified lines727374757576777871 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";
const inference = new HfInference(HF_ACCESS_TOKEN);const inference = new HfInference(HF_TOKEN);await inference.conversational({ model: "distilbert-base-uncased-finetuned-sst-2-english", inputs: "I love this movie!",40 unmodified lines414243444445464740 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";
const inference = new HfInference(HF_ACCESS_TOKEN);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 lines474849505051525346 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";
const inference = new HfInference(HF_ACCESS_TOKEN);const inference = new HfInference(HF_TOKEN);await inference.textToSpeech({ model: "facebook/mms-tts", inputs: "text to generate speech from",36 unmodified lines373839404041424336 unmodified lines```javascriptimport { HfInference } from "@huggingface/inference";
const inference = new HfInference(HF_ACCESS_TOKEN);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