fix testing values

This commit is contained in:
caranicas 2022-09-14 14:32:01 -04:00
parent fcc196f452
commit 8158ead1a2
2 changed files with 3 additions and 4 deletions

View File

@ -41,7 +41,6 @@ export const MakeImageKey = 'MakeImage';
export const doMakeImage = async (reqBody: ImageRequest) => { export const doMakeImage = async (reqBody: ImageRequest) => {
const {seed, num_outputs} = reqBody; const {seed, num_outputs} = reqBody;
console.log('doMakeImage', seed, num_outputs);
const res = await fetch(`${API_URL}/image`, { const res = await fetch(`${API_URL}/image`, {
method: 'POST', method: 'POST',

View File

@ -67,13 +67,13 @@ interface ImageCreateState {
// @ts-ignore // @ts-ignore
export const useImageCreate = create<ImageCreateState>(devtools((set, get) => ({ export const useImageCreate = create<ImageCreateState>(devtools((set, get) => ({
parallelCount: 2, parallelCount: 1,
requestOptions:{ requestOptions:{
prompt: 'a photograph of an astronaut riding a horse', prompt: 'a photograph of an astronaut riding a horse',
seed: useRandomSeed(), seed: useRandomSeed(),
num_outputs: 2, num_outputs: 1,
num_inference_steps: 5, num_inference_steps: 50,
guidance_scale: 7.5, guidance_scale: 7.5,
width: 512, width: 512,
height: 512, height: 512,