sushilnitham commited on
Commit
e68b700
·
1 Parent(s): 1a2154f

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +21 -19
index.html CHANGED
@@ -29,7 +29,7 @@
29
  type: "markdown",
30
  props: {
31
  value:
32
- '<h1><center>DALL\u00b7E mini by <a href="https://www.i-go.tech/" target="_blank">www.i-go.tech</a></center></h1>',
33
  name: "markdown",
34
  visible: true,
35
  style: {},
@@ -84,7 +84,7 @@
84
  id: 8,
85
  type: "button",
86
  props: {
87
- value: "Run",
88
  variant: "primary",
89
  name: "button",
90
  visible: true,
@@ -131,7 +131,7 @@
131
  type: "markdown",
132
  props: {
133
  value:
134
- '<details>\n<summary>Bias and Limitations</summary>\n<p style=\'line-height: normal; font-size: small\'>\nWhile the capabilities of image generation models are impressive, they may also reinforce or exacerbate societal biases. While the extent and nature of the biases of the DALL\u00b7E mini model have yet to be fully documented, given the fact that the model was trained on unfiltered data from the Internet, it may generate images that contain stereotypes against minority groups. Work to analyze the nature and extent of these limitations is ongoing, and will be documented in more detail in the <a href="https://huggingface.co/dalle-mini/dalle-mini" target="_blank">DALL\u00b7E mini model card</a>.\n</p>\n</details>',
135
  name: "markdown",
136
  visible: true,
137
  style: {},
@@ -142,27 +142,27 @@
142
  type: "markdown",
143
  props: {
144
  value:
145
- // '<p style=\'text-align: center\'>\nNew model available on \ud83d\udd8d\ufe0f <a href="https://www.craiyon.com/" target="_blank">www.i-go.tech</a>\n</p>',
 
 
 
 
 
 
 
 
 
 
 
146
  name: "markdown",
147
  visible: true,
148
  style: {},
149
  },
150
  },
151
- // {
152
- // id: 14,
153
- // type: "markdown",
154
- // props: {
155
- // value:
156
- // // '<hr />\n<p style=\'text-align: center\'>\nCreated by <a href="https://twitter.com/igotech" target="_blank">Boris Dayma</a> et al. 2021-2022\n<br/>\n<a href="https://github.com/borisdayma/dalle-mini" target="_blank">GitHub</a> | <a href="https://wandb.ai/dalle-mini/dalle-mini/reports/DALL-E-mini-Generate-images-from-any-text-prompt--VmlldzoyMDE4NDAy" target="_blank">Project Report</a>\n<p style=\'text-align: center\'>Powered by Google <a href="https://sites.research.google/trc/" target="_blank">TPU Research Cloud</a>\n</p>',
157
- // name: "markdown",
158
- // visible: true,
159
- // style: {},
160
- // },
161
- // },
162
  ],
163
  theme: "default",
164
  css: ".container { max-width: 800px; margin: auto; }",
165
- title: "Gradio",
166
  enable_queue: false,
167
  layout: {
168
  id: 0,
@@ -197,7 +197,9 @@
197
  inputs: [7],
198
  outputs: [9],
199
  backend_fn: false,
200
- js: "\n async (text) => {\n try {\n document.querySelector('#screenshot').style.display = 'none';\n response = await fetch('https://bf.dallemini.ai/generate', {\n method: 'POST',\n headers: {\n 'Accept': 'application/json',\n 'Content-Type': 'application/json'\n },\n body: JSON.stringify({\n prompt: text\n })\n });\n response = await response.json()\n let imgs = response.images.map(r => \"data:image/png;base64,\" + r)\n document.querySelector('#screenshot').style.display = 'block';\n return imgs\n } catch (e) {\n alert(\"Too much traffic, please try again.\")\n IMG = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAMAAACahl6sAAAAOVBMVEXg4OB1dXXX19fd3d2EhIR9fX14eHjJycm2trbb29uurq6goKCZmZmIiIiBgYHNzc2np6e8vLySkpKXK8HrAAABuUlEQVR4nO3Z0bKCIBCAYQNFVCzr/R/2nHU6k8KpJi6wZf7vLu1id9gFhKYBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAb249h7pzr5jD29uhospnlfNo4L+boiLKYyZ0iblKYiu/iNER3PTquD9npPgbB98Za0/twH59JVasMtzXo1m+iHny7PrwpysSuebgxCtmOTlkma121l/TFZR2UqXxEebxEO/87QZlZ3inpeCPzVftkojUyJp2OWVgKy23qSsbg8evitBSXkUjHzYN9Is0oeWoYkkUKazsxRYlYKa6ldFSfs7K/8tsnUSLrXHAuG1SOXpp5t1LEiQxSe33ZqDJIC4TdkziRJkRN9J1CXFlpIj7J9RvNSd0kiUj1zSVjyiKr4X5yTRIx0kYlY8oinbzfFSaJWFlJSsaUpZpEqimttNkTOpo9nX4TOqbfdEFM6FgQpW7c8OofSrYo1Wwaq9nG1/NhVc2nbj2HD821kuOgeg7o3hyZBj1Hpo9D7M3K+HeIrSmPeq4Vfl3ruOhpnly9vdyEfa1KLkPF7nr66GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPjcD13rCcC3ILx/AAAAAElFTkSuQmCC\"\n document.querySelector('#screenshot').style.display = 'block';\n return Array(9).fill(IMG)\n }\n }\n ",
 
 
201
  status_tracker: null,
202
  queue: null,
203
  api_name: null,
@@ -267,7 +269,7 @@
267
  <script type="text/javascript">
268
  if (
269
  self === top ||
270
- window.location.ancestorOrigins[0] === "https://huggingface.co"
271
  ) {
272
  var mofo = document.getElementById("mofo");
273
  mofo.parentNode.removeChild(mofo);
@@ -292,4 +294,4 @@
292
  ></div>
293
  <script src="html2canvas.js"></script>
294
  </body>
295
- </html>
 
29
  type: "markdown",
30
  props: {
31
  value:
32
+ '<h1><center>TEXT TO IMAGES by <a href="https://i-go.tech/igo/" target="_blank">i-Go.Tech</a></center></h1>',
33
  name: "markdown",
34
  visible: true,
35
  style: {},
 
84
  id: 8,
85
  type: "button",
86
  props: {
87
+ value: "Submit",
88
  variant: "primary",
89
  name: "button",
90
  visible: true,
 
131
  type: "markdown",
132
  props: {
133
  value:
134
+ '<details>\n<summary>Bias and Limitations</summary>\n<p style=\'line-height: normal; font-size: small\'>\nWhile the capabilities of image generation models are impressive, they may also reinforce or exacerbate societal biases. While the extent and nature of the biases of the DALL\u00b7E mini model have yet to be fully documented, given the fact that the model was trained on unfiltered data from the Internet, it may generate images that contain stereotypes against minority groups. Work to analyze the nature and extent of these limitations is ongoing, </p>\n</details>',
135
  name: "markdown",
136
  visible: true,
137
  style: {},
 
142
  type: "markdown",
143
  props: {
144
  value:
145
+ '<p> </p>',
146
+ name: "markdown",
147
+ visible: true,
148
+ style: {},
149
+ },
150
+ },
151
+ {
152
+ id: 14,
153
+ type: "markdown",
154
+ props: {
155
+ value:
156
+ '<hr />\n<p > </p>',
157
  name: "markdown",
158
  visible: true,
159
  style: {},
160
  },
161
  },
 
 
 
 
 
 
 
 
 
 
 
162
  ],
163
  theme: "default",
164
  css: ".container { max-width: 800px; margin: auto; }",
165
+ title: "i-Go.Tech",
166
  enable_queue: false,
167
  layout: {
168
  id: 0,
 
197
  inputs: [7],
198
  outputs: [9],
199
  backend_fn: false,
200
+ js:
201
+ "\n async (text) => {\n try {\n document.querySelector('#screenshot').style.display = 'none';\n response = await fetch('https://bf.dallemini.ai/generate', {\n method: 'POST',\n headers: {\n 'Accept': 'application/json',\n 'Content-Type': 'application/json'\n },\n body: JSON.stringify({\n prompt: text\n })\n });\n response = await response.json()\n let imgs = response.images.map(r => \"data:image/png;base64,\" + r)\n document.querySelector('#screenshot').style.display = 'block';\n return imgs\n } catch (e) {\n alert(\"Too much traffic, please try again.\")\n IMG = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAMAAACahl6sAAAAOVBMVEXg4OB1dXXX19fd3d2EhIR9fX14eHjJycm2trbb29uurq6goKCZmZmIiIiBgYHNzc2np6e8vLySkpKXK8HrAAABuUlEQVR4nO3Z0bKCIBCAYQNFVCzr/R/2nHU6k8KpJi6wZf7vLu1id9gFhKYBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAb249h7pzr5jD29uhospnlfNo4L+boiLKYyZ0iblKYiu/iNER3PTquD9npPgbB98Za0/twH59JVasMtzXo1m+iHny7PrwpysSuebgxCtmOTlkma121l/TFZR2UqXxEebxEO/87QZlZ3inpeCPzVftkojUyJp2OWVgKy23qSsbg8evitBSXkUjHzYN9Is0oeWoYkkUKazsxRYlYKa6ldFSfs7K/8tsnUSLrXHAuG1SOXpp5t1LEiQxSe33ZqDJIC4TdkziRJkRN9J1CXFlpIj7J9RvNSd0kiUj1zSVjyiKr4X5yTRIx0kYlY8oinbzfFSaJWFlJSsaUpZpEqimttNkTOpo9nX4TOqbfdEFM6FgQpW7c8OofSrYo1Wwaq9nG1/NhVc2nbj2HD821kuOgeg7o3hyZBj1Hpo9D7M3K+HeIrSmPeq4Vfl3ruOhpnly9vdyEfa1KLkPF7nr66GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPjcD13rCcC3ILx/AAAAAElFTkSuQmCC\"\n document.querySelector('#screenshot').style.display = 'block';\n return Array(9).fill(IMG)\n }\n }\n "
202
+ ,
203
  status_tracker: null,
204
  queue: null,
205
  api_name: null,
 
269
  <script type="text/javascript">
270
  if (
271
  self === top ||
272
+ window.location.ancestorOrigins[0] === ""
273
  ) {
274
  var mofo = document.getElementById("mofo");
275
  mofo.parentNode.removeChild(mofo);
 
294
  ></div>
295
  <script src="html2canvas.js"></script>
296
  </body>
297
+ </html>