Skip to content

Commit

Permalink
fix(gui): switch txt2img to post on client
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Jan 7, 2023
1 parent 926f77b commit e454203
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gui/src/api/client.ts
Expand Up @@ -159,7 +159,9 @@ export function makeClient(root: string, f = fetch): ApiClient {

url.searchParams.append('prompt', params.prompt);

pending = f(url).then((res) => imageFromResponse(root, res)).finally(() => {
pending = f(url, {
method: 'POST',
}).then((res) => imageFromResponse(root, res)).finally(() => {
pending = undefined;
});

Expand Down

0 comments on commit e454203

Please sign in to comment.