mishig HF staff commited on
Commit
122e32e
1 Parent(s): 73f2651

Correct try wrap

Browse files
Files changed (1) hide show
  1. src/routes/+page.svelte +5 -5
src/routes/+page.svelte CHANGED
@@ -94,12 +94,12 @@
94
  form.append('prompt', txt);
95
  form.append('image', imgFile);
96
 
97
- const response = await fetch('https://sdb.pcuenca.net/i2i', {
98
- method: 'POST',
99
- body: form
100
- });
101
-
102
  try {
 
 
 
 
 
103
  const json = JSON.parse(await response.text());
104
 
105
  const { images: imagesBase64Strs }: { images: string[] } = json;
 
94
  form.append('prompt', txt);
95
  form.append('image', imgFile);
96
 
 
 
 
 
 
97
  try {
98
+ const response = await fetch('https://sdb.pcuenca.net/i2i', {
99
+ method: 'POST',
100
+ body: form
101
+ });
102
+
103
  const json = JSON.parse(await response.text());
104
 
105
  const { images: imagesBase64Strs }: { images: string[] } = json;