You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-76Lines changed: 4 additions & 76 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,16 +62,7 @@ const livepeer = new Livepeer({
62
62
63
63
asyncfunction run() {
64
64
const result =awaitlivepeer.generate.textToImage({
65
-
modelId: "",
66
-
loras: "",
67
65
prompt: "<value>",
68
-
height: 576,
69
-
width: 1024,
70
-
guidanceScale: 7.5,
71
-
negativePrompt: "",
72
-
safetyCheck: true,
73
-
numInferenceSteps: 50,
74
-
numImagesPerPrompt: 1,
75
66
});
76
67
77
68
// Handle the result
@@ -161,15 +152,6 @@ async function run() {
161
152
const result =awaitlivepeer.generate.imageToImage({
162
153
image: awaitopenAsBlob("example.file"),
163
154
prompt: "<value>",
164
-
guidanceScale: 7.5,
165
-
imageGuidanceScale: 1.5,
166
-
loras: "",
167
-
modelId: "",
168
-
negativePrompt: "",
169
-
numImagesPerPrompt: 1,
170
-
numInferenceSteps: 100,
171
-
safetyCheck: true,
172
-
strength: 0.8,
173
155
});
174
156
175
157
// Handle the result
@@ -196,16 +178,7 @@ const livepeer = new Livepeer({
196
178
197
179
asyncfunction run() {
198
180
const result =awaitlivepeer.generate.textToImage({
199
-
modelId: "",
200
-
loras: "",
201
181
prompt: "<value>",
202
-
height: 576,
203
-
width: 1024,
204
-
guidanceScale: 7.5,
205
-
negativePrompt: "",
206
-
safetyCheck: true,
207
-
numInferenceSteps: 50,
208
-
numImagesPerPrompt: 1,
209
182
}, {
210
183
retries: {
211
184
strategy: "backoff",
@@ -247,16 +220,7 @@ const livepeer = new Livepeer({
247
220
248
221
asyncfunction run() {
249
222
const result =awaitlivepeer.generate.textToImage({
250
-
modelId: "",
251
-
loras: "",
252
223
prompt: "<value>",
253
-
height: 576,
254
-
width: 1024,
255
-
guidanceScale: 7.5,
256
-
negativePrompt: "",
257
-
safetyCheck: true,
258
-
numInferenceSteps: 50,
259
-
numImagesPerPrompt: 1,
260
224
});
261
225
262
226
// Handle the result
@@ -298,16 +262,7 @@ async function run() {
298
262
let result;
299
263
try {
300
264
result=awaitlivepeer.generate.textToImage({
301
-
modelId: "",
302
-
loras: "",
303
265
prompt: "<value>",
304
-
height: 576,
305
-
width: 1024,
306
-
guidanceScale: 7.5,
307
-
negativePrompt: "",
308
-
safetyCheck: true,
309
-
numInferenceSteps: 50,
310
-
numImagesPerPrompt: 1,
311
266
});
312
267
313
268
// Handle the result
@@ -369,10 +324,10 @@ In some rare cases, the SDK can fail to get a response from the server or even m
369
324
370
325
You can override the default server globally by passing a server index to the `serverIdx: number` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:
0 commit comments