Skip to content

Commit bb562b6

Browse files
committed
Replace spaces with _ in YOUR BYTEZ KEY HERE.
1 parent 11d4d47 commit bb562b6

File tree

97 files changed

+197
-197
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+197
-197
lines changed

README.md

Lines changed: 3 additions & 3 deletions

examples/javascript/tasks/audioClassification/audioClassification.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Bytez from "bytez.js";
22

3-
const client = new Bytez("YOUR BYTEZ KEY HERE");
3+
const client = new Bytez("YOUR_BYTEZ_KEY_HERE");
44

55
const inputAudioBase64 = await getBase64Audio(
66
"https://huggingface.co/datasets/huggingfacejs/tasks/resolve/main/audio-classification/audio.wav"

examples/javascript/tasks/automaticSpeechRecognition/automaticSpeechRecognition.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Bytez from "bytez.js";
22

3-
const client = new Bytez("YOUR BYTEZ KEY HERE");
3+
const client = new Bytez("YOUR_BYTEZ_KEY_HERE");
44

55
const inputAudioBase64 = await getBase64Audio(
66
"https://huggingface.co/datasets/huggingfacejs/tasks/resolve/main/automatic-speech-recognition/input.flac"

examples/javascript/tasks/chatModels/chatModels.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Bytez from "bytez.js";
22

3-
const client = new Bytez("YOUR BYTEZ KEY HERE");
3+
const client = new Bytez("YOUR_BYTEZ_KEY_HERE");
44

55
const messages = [
66
{

examples/javascript/tasks/depthEstimation/depthEstimation.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { writeFileSync } from "fs";
66
const __filename = fileURLToPath(import.meta.url);
77
const __dirname = dirname(__filename);
88

9-
const client = new Bytez("YOUR BYTEZ KEY HERE");
9+
const client = new Bytez("YOUR_BYTEZ_KEY_HERE");
1010

1111
const inputImage =
1212
"https://as1.ftcdn.net/v2/jpg/03/03/55/82/1000_F_303558268_YNUQp9NNMTE0X4zrj314mbWcDHd1pZPD.jpg";

examples/javascript/tasks/documentQuestionAnswering/documentQuestionAnswering.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Bytez from "bytez.js";
22

3-
const client = new Bytez("YOUR BYTEZ KEY HERE");
3+
const client = new Bytez("YOUR_BYTEZ_KEY_HERE");
44

55
const model = client.model("cloudqi/CQI_Visual_Question_Awnser_PT_v0");
66

examples/javascript/tasks/featureExtraction/featureExtraction.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Bytez from "bytez.js";
22

3-
const client = new Bytez("YOUR BYTEZ KEY HERE");
3+
const client = new Bytez("YOUR_BYTEZ_KEY_HERE");
44

55
const inputText = "Your text for feature extraction goes here...";
66

examples/javascript/tasks/fillMask/fillMask.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Bytez from "bytez.js";
22

3-
const client = new Bytez("YOUR BYTEZ KEY HERE");
3+
const client = new Bytez("YOUR_BYTEZ_KEY_HERE");
44

55
const model = client.model("almanach/camembert-base");
66

examples/javascript/tasks/functionCallingModels/functionCallingModels.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Bytez from "bytez.js";
22

3-
const client = new Bytez("YOUR BYTEZ KEY HERE");
3+
const client = new Bytez("YOUR_BYTEZ_KEY_HERE");
44

55
const inputText = "What's the weather like in Seattle right now?";
66

examples/javascript/tasks/imageClassification/imageClassification.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Bytez from "bytez.js";
22

3-
const client = new Bytez("YOUR BYTEZ KEY HERE");
3+
const client = new Bytez("YOUR_BYTEZ_KEY_HERE");
44

55
const imgUrl =
66
"https://www.padoniavets.com/sites/default/files/field/image/cats-and-dogs.jpg";

examples/javascript/tasks/imageFeatureExtraction/imageFeatureExtraction.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Bytez from "bytez.js";
22

3-
const client = new Bytez("YOUR BYTEZ KEY HERE");
3+
const client = new Bytez("YOUR_BYTEZ_KEY_HERE");
44

55
const inputImage =
66
"https://as1.ftcdn.net/v2/jpg/03/03/55/82/1000_F_303558268_YNUQp9NNMTE0X4zrj314mbWcDHd1pZPD.jpg";

examples/javascript/tasks/imageSegmentation/imageSegmentation.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { writeFileSync } from "node:fs";
55

66
const __filename = fileURLToPath(import.meta.url);
77
const __dirname = dirname(__filename);
8-
const client = new Bytez("YOUR BYTEZ KEY HERE");
8+
const client = new Bytez("YOUR_BYTEZ_KEY_HERE");
99

1010
const imgUrl =
1111
"https://ocean.si.edu/sites/default/files/styles/3_2_largest/public/2023-11/Screen_Shot_2018-04-16_at_1_42_56_PM.png.webp?itok=Icvi-ek9";

examples/javascript/tasks/imageToText/imageToText.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Bytez from "bytez.js";
22

3-
const client = new Bytez("YOUR BYTEZ KEY HERE");
3+
const client = new Bytez("YOUR_BYTEZ_KEY_HERE");
44

55
const inputImage =
66
"https://as1.ftcdn.net/v2/jpg/03/03/55/82/1000_F_303558268_YNUQp9NNMTE0X4zrj314mbWcDHd1pZPD.jpg";

examples/javascript/tasks/maskGeneration/maskGeneration.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { PNG } from "pngjs";
77
const __filename = fileURLToPath(import.meta.url);
88
const __dirname = dirname(__filename);
99

10-
const client = new Bytez("YOUR BYTEZ KEY HERE");
10+
const client = new Bytez("YOUR_BYTEZ_KEY_HERE");
1111

1212
const inputImageBase64 = await getBase64Image(
1313
"https://huggingface.co/datasets/huggingfacejs/tasks/resolve/main/mask-generation/mask-generation-input.png"

examples/javascript/tasks/objectDetection/objectDetection.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { createCanvas } from "canvas";
99
const __filename = fileURLToPath(import.meta.url);
1010
const __dirname = dirname(__filename);
1111

12-
const client = new Bytez("YOUR BYTEZ KEY HERE");
12+
const client = new Bytez("YOUR_BYTEZ_KEY_HERE");
1313
const imgUrl =
1414
"https://upload.wikimedia.org/wikipedia/commons/thumb/4/4d/Cat_November_2010-1a.jpg/1200px-Cat_November_2010-1a.jpg";
1515

examples/javascript/tasks/questionAnswering/questionAnswering.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Bytez from "bytez.js";
22

3-
const client = new Bytez("YOUR BYTEZ KEY HERE");
3+
const client = new Bytez("YOUR_BYTEZ_KEY_HERE");
44

55
const model = client.model("deepset/roberta-base-squad2");
66

examples/javascript/tasks/sentenceSimilarity/sentenceSimilarity.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Bytez from "bytez.js";
22
import * as tf from "@tensorflow/tfjs"; // Import TensorFlow.js
33

4-
const client = new Bytez("YOUR BYTEZ KEY HERE");
4+
const client = new Bytez("YOUR_BYTEZ_KEY_HERE");
55

66
const model = client.model("sentence-transformers/all-MiniLM-L6-v2");
77

examples/javascript/tasks/summarization/summarization.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Bytez from "bytez.js";
22

3-
const client = new Bytez("YOUR BYTEZ KEY HERE");
3+
const client = new Bytez("YOUR_BYTEZ_KEY_HERE");
44

55
const inputText = `
66
The Big Bang is a physical theory that describes how the universe expanded from an initial state of high density and temperature.[1] The notion of an expanding universe was first scientifically originated by physicist Alexander Friedmann in 1922 with the mathematical derivation of the Friedmann equations.[2][3][4][5]

examples/javascript/tasks/textClassification/textClassification.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Bytez from "bytez.js";
22

3-
const client = new Bytez("YOUR BYTEZ KEY HERE");
3+
const client = new Bytez("YOUR_BYTEZ_KEY_HERE");
44

55
const inputText = "We are furious with the results of the experiment!";
66

examples/javascript/tasks/textGeneration/textGeneration.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Bytez from "bytez.js";
22

3-
const client = new Bytez("YOUR BYTEZ KEY HERE");
3+
const client = new Bytez("YOUR_BYTEZ_KEY_HERE");
44

55
const modelParams = {
66
max_new_tokens: 500,

examples/javascript/tasks/textToImage/textToImage.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { writeFileSync } from "node:fs";
66
const __filename = fileURLToPath(import.meta.url);
77
const __dirname = dirname(__filename);
88

9-
const client = new Bytez("YOUR BYTEZ KEY HERE");
9+
const client = new Bytez("YOUR_BYTEZ_KEY_HERE");
1010

1111
const model = client.model("dreamlike-art/dreamlike-photoreal-2.0");
1212

examples/javascript/tasks/textToSpeech/textToSpeech.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { writeFileSync } from "node:fs";
66
const __filename = fileURLToPath(import.meta.url);
77
const __dirname = dirname(__filename);
88

9-
const client = new Bytez("YOUR BYTEZ KEY HERE");
9+
const client = new Bytez("YOUR_BYTEZ_KEY_HERE");
1010

1111
const model = client.model("suno/bark-small");
1212

examples/javascript/tasks/textToTextGeneration/textToTextGeneration.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Bytez from "bytez.js";
22

3-
const client = new Bytez("YOUR BYTEZ KEY HERE");
3+
const client = new Bytez("YOUR_BYTEZ_KEY_HERE");
44

55
const modelParams = { max_new_tokens: 20, temperature: 2 };
66

examples/javascript/tasks/textToVideo/textToVideo.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { writeFileSync } from "node:fs";
66
const __filename = fileURLToPath(import.meta.url);
77
const __dirname = dirname(__filename);
88

9-
const client = new Bytez("YOUR BYTEZ KEY HERE");
9+
const client = new Bytez("YOUR_BYTEZ_KEY_HERE");
1010

1111
const model = client.model("ali-vilab/text-to-video-ms-1.7b");
1212

examples/javascript/tasks/tokenClassification/tokenClassification.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Bytez from "bytez.js";
22

3-
const client = new Bytez("YOUR BYTEZ KEY HERE");
3+
const client = new Bytez("YOUR_BYTEZ_KEY_HERE");
44

55
const model = client.model("dslim/bert-base-NER");
66

examples/javascript/tasks/translation/translation.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Bytez from "bytez.js";
22

3-
const client = new Bytez("YOUR BYTEZ KEY HERE");
3+
const client = new Bytez("YOUR_BYTEZ_KEY_HERE");
44

55
const inputText = "Hello, how are you? Beautiful day today, isn't it?";
66

examples/javascript/tasks/unconditionalImageGeneration/unconditionalImageGeneration.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { writeFileSync } from "node:fs";
66
const __filename = fileURLToPath(import.meta.url);
77
const __dirname = dirname(__filename);
88

9-
const client = new Bytez("YOUR BYTEZ KEY HERE");
9+
const client = new Bytez("YOUR_BYTEZ_KEY_HERE");
1010

1111
const model = client.model("afshr/cam_finetune");
1212

examples/javascript/tasks/videoClassification/videoClassification.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Bytez from "bytez.js";
22

3-
const client = new Bytez("YOUR BYTEZ KEY HERE");
3+
const client = new Bytez("YOUR_BYTEZ_KEY_HERE");
44

55
const videoUrl =
66
"https://video-previews.elements.envatousercontent.com/6d07b79d-b17a-47b5-9d24-4fe984c7ca36/watermarked_preview/watermarked_preview.mp4";

examples/javascript/tasks/visualQuestionAnswering/visualQuestionAnswering.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Bytez from "bytez.js";
22

3-
const client = new Bytez("YOUR BYTEZ KEY HERE");
3+
const client = new Bytez("YOUR_BYTEZ_KEY_HERE");
44

55
const model = client.model("Salesforce/blip-vqa-base");
66

examples/javascript/tasks/zeroShotClassification/zeroShotClassification.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Bytez from "bytez.js";
22

3-
const client = new Bytez("YOUR BYTEZ KEY HERE");
3+
const client = new Bytez("YOUR_BYTEZ_KEY_HERE");
44

55
const model = client.model("facebook/bart-large-mnli");
66

examples/javascript/tasks/zeroShotImageClassification/zeroShotImageClassification.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Bytez from "bytez.js";
22

3-
const client = new Bytez("YOUR BYTEZ KEY HERE");
3+
const client = new Bytez("YOUR_BYTEZ_KEY_HERE");
44

55
const model = client.model("BilelDJ/clip-hugging-face-finetuned");
66

examples/javascript/tasks/zeroShotObjectDetection/zeroShotObjectDetection.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Bytez from "bytez.js";
22

3-
const client = new Bytez("YOUR BYTEZ KEY HERE");
3+
const client = new Bytez("YOUR_BYTEZ_KEY_HERE");
44

55
const inputImageBase64 = await getBase64Image(
66
"https://ocean.si.edu/sites/default/files/styles/3_2_largest/public/2023-11/Screen_Shot_2018-04-16_at_1_42_56_PM.png.webp?itok=Icvi-ek9"

examples/julia/tasks/audio_classification/audio_classification.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ input_audio_base64 = get_base64_audio(
1111
"https://huggingface.co/datasets/huggingfacejs/tasks/resolve/main/audio-classification/audio.wav",
1212
)
1313

14-
client = Bytez.init("YOUR BYTEZ KEY HERE")
14+
client = Bytez.init("YOUR_BYTEZ_KEY_HERE")
1515

1616
model = client.model("aaraki/wav2vec2-base-finetuned-ks")
1717

examples/julia/tasks/automatic_speech_recognition/automatic_speech_recognition.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ input_audio_base64 = get_base64_audio(
1111
"https://huggingface.co/datasets/huggingfacejs/tasks/resolve/main/audio-classification/audio.wav",
1212
)
1313

14-
client = Bytez.init("YOUR BYTEZ KEY HERE")
14+
client = Bytez.init("YOUR_BYTEZ_KEY_HERE")
1515

1616
model = client.model("facebook/data2vec-audio-base-960h")
1717

examples/julia/tasks/chat_models/chat_models.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Bytez
22

3-
client = Bytez.init("YOUR BYTEZ KEY HERE")
3+
client = Bytez.init("YOUR_BYTEZ_KEY_HERE")
44

55
model = client.model("microsoft/Phi-3-mini-4k-instruct")
66

examples/julia/tasks/depth_estimation/depth_estimation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ using Printf
55

66
WORKING_DIR = dirname(@__FILE__)
77

8-
client = Bytez.init("YOUR BYTEZ KEY HERE")
8+
client = Bytez.init("YOUR_BYTEZ_KEY_HERE")
99

1010
model = client.model("vinvino02/glpn-nyu")
1111

examples/julia/tasks/document_question_answering/document_question_answering.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ using Printf
33

44
WORKING_DIR = dirname(@__FILE__)
55

6-
client = Bytez.init("YOUR BYTEZ KEY HERE")
6+
client = Bytez.init("YOUR_BYTEZ_KEY_HERE")
77

88
model = client.model("cloudqi/CQI_Visual_Question_Awnser_PT_v0")
99

examples/julia/tasks/feature_extraction/feature_extraction.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Bytez
22

3-
client = Bytez.init("YOUR BYTEZ KEY HERE")
3+
client = Bytez.init("YOUR_BYTEZ_KEY_HERE")
44

55
model = client.model("Salesforce/SFR-Embedding-2_R")
66

examples/julia/tasks/fill_mask/fill_mask.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Bytez
22

3-
client = Bytez.init("YOUR BYTEZ KEY HERE")
3+
client = Bytez.init("YOUR_BYTEZ_KEY_HERE")
44

55
model = client.model("almanach/camembert-base")
66

examples/julia/tasks/function_calling_models/function_calling_models.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Bytez
22

3-
client = Bytez.init("YOUR BYTEZ KEY HERE")
3+
client = Bytez.init("YOUR_BYTEZ_KEY_HERE")
44

55
model = client.model("Nexusflow/NexusRaven-V2-13B")
66

examples/julia/tasks/image_classification/image_classification.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Bytez
22

3-
client = Bytez.init("YOUR BYTEZ KEY HERE")
3+
client = Bytez.init("YOUR_BYTEZ_KEY_HERE")
44

55
model = client.model("google/vit-base-patch16-224")
66

examples/julia/tasks/image_feature_extraction/image_feature_extraction.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Bytez
22

3-
client = Bytez.init("YOUR BYTEZ KEY HERE")
3+
client = Bytez.init("YOUR_BYTEZ_KEY_HERE")
44

55
model = client.model("nomic-ai/nomic-embed-vision-v1")
66

examples/julia/tasks/image_segmentation/image_segmentation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ using Printf
44

55
WORKING_DIR = dirname(@__FILE__)
66

7-
client = Bytez.init("YOUR BYTEZ KEY HERE")
7+
client = Bytez.init("YOUR_BYTEZ_KEY_HERE")
88

99
model = client.model("sayeed99/segformer-b3-fashion")
1010

examples/julia/tasks/image_to_text/image_to_text.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Bytez
22

3-
client = Bytez.init("YOUR BYTEZ KEY HERE")
3+
client = Bytez.init("YOUR_BYTEZ_KEY_HERE")
44

55
input_image_url = "https://as1.ftcdn.net/v2/jpg/03/03/55/82/1000_F_303558268_YNUQp9NNMTE0X4zrj314mbWcDHd1pZPD.jpg"
66

examples/julia/tasks/mask_generation/mask_generation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ input_image_base64 = get_base64_image(
1717
"https://huggingface.co/datasets/huggingfacejs/tasks/resolve/main/mask-generation/mask-generation-input.png",
1818
)
1919

20-
client = Bytez.init("YOUR BYTEZ KEY HERE")
20+
client = Bytez.init("YOUR_BYTEZ_KEY_HERE")
2121

2222
model = client.model("facebook/sam-vit-base")
2323

0 commit comments

Comments
 (0)