Spaces:
Running
Running
add transformers js system prompt update
Browse files
app.py
CHANGED
@@ -111,6 +111,11 @@ Requirements:
|
|
111 |
6. Include proper error handling and loading states
|
112 |
7. Follow accessibility best practices
|
113 |
|
|
|
|
|
|
|
|
|
|
|
114 |
The index.html should contain the basic HTML structure and link to the CSS and JS files.
|
115 |
The index.js should contain all the JavaScript logic including transformers.js integration.
|
116 |
The style.css should contain all the styling for the application.
|
@@ -217,6 +222,11 @@ Requirements:
|
|
217 |
7. Include proper error handling and loading states
|
218 |
8. Follow accessibility best practices
|
219 |
|
|
|
|
|
|
|
|
|
|
|
220 |
The index.html should contain the basic HTML structure and link to the CSS and JS files.
|
221 |
The index.js should contain all the JavaScript logic including transformers.js integration.
|
222 |
The style.css should contain all the styling for the application.
|
|
|
111 |
6. Include proper error handling and loading states
|
112 |
7. Follow accessibility best practices
|
113 |
|
114 |
+
Library import (required): Add the following snippet to index.html to import transformers.js:
|
115 |
+
<script type="module">
|
116 |
+
import { pipeline } from 'https://cdn.jsdelivr.net/npm/@huggingface/[email protected]';
|
117 |
+
</script>
|
118 |
+
|
119 |
The index.html should contain the basic HTML structure and link to the CSS and JS files.
|
120 |
The index.js should contain all the JavaScript logic including transformers.js integration.
|
121 |
The style.css should contain all the styling for the application.
|
|
|
222 |
7. Include proper error handling and loading states
|
223 |
8. Follow accessibility best practices
|
224 |
|
225 |
+
Library import (required): Add the following snippet to index.html to import transformers.js:
|
226 |
+
<script type="module">
|
227 |
+
import { pipeline } from 'https://cdn.jsdelivr.net/npm/@huggingface/[email protected]';
|
228 |
+
</script>
|
229 |
+
|
230 |
The index.html should contain the basic HTML structure and link to the CSS and JS files.
|
231 |
The index.js should contain all the JavaScript logic including transformers.js integration.
|
232 |
The style.css should contain all the styling for the application.
|