mishig HF staff commited on
Commit
ee4de01
1 Parent(s): 282f153

Finalize url input img

Browse files
Files changed (1) hide show
  1. share_btn.py +5 -1
share_btn.py CHANGED
@@ -67,10 +67,14 @@ share_js = """async () => {
67
  files.push(inputFile);
68
 
69
  const urls = await Promise.all(files.map((f) => uploadFile(f)));
 
70
  const htmlImgs = urls.map(url => `<img src='${url}' width='400' height='400'>`);
71
  const htmlImgsMd = htmlImgs.join(`\n`);
72
 
73
- const descriptionMd = `#### Caption:
 
 
 
74
  ${promptTxt}
75
 
76
  #### Generations:
 
67
  files.push(inputFile);
68
 
69
  const urls = await Promise.all(files.map((f) => uploadFile(f)));
70
+ const urlInputImg = urls.pop();
71
  const htmlImgs = urls.map(url => `<img src='${url}' width='400' height='400'>`);
72
  const htmlImgsMd = htmlImgs.join(`\n`);
73
 
74
+ const descriptionMd = `#### Input img:
75
+ <img src='${urlInputImg}'>
76
+
77
+ #### Caption:
78
  ${promptTxt}
79
 
80
  #### Generations: