Spaces:
Running
Running
Update index.js
Browse files
index.js
CHANGED
|
@@ -175,8 +175,8 @@ async function pipeStreamAndReportProgress(readableStream, writableStream) {
|
|
| 175 |
async function loadLlmSafari() {
|
| 176 |
alert('Safari browser does not support automatic model downloading. However, you can try downloading the model manually and then selecting it from the file chooser.');
|
| 177 |
loaderMessage.textContent = "Safari not supported. You can try downloading the model yourself manually, and then selecting it from the file chooser.";
|
| 178 |
-
const fileButton = document.getElementById('safari-file-
|
| 179 |
-
const fileChooser = document.getElementById('safari-file-
|
| 180 |
fileChooser.style = "visibility:hidden";
|
| 181 |
fileButton.style = "";
|
| 182 |
const fileChosenPromise = new Promise((resolve) => {
|
|
|
|
| 175 |
async function loadLlmSafari() {
|
| 176 |
alert('Safari browser does not support automatic model downloading. However, you can try downloading the model manually and then selecting it from the file chooser.');
|
| 177 |
loaderMessage.textContent = "Safari not supported. You can try downloading the model yourself manually, and then selecting it from the file chooser.";
|
| 178 |
+
const fileButton = document.getElementById('safari-upload-file-button');
|
| 179 |
+
const fileChooser = document.getElementById('safari-upload-file-chooser');
|
| 180 |
fileChooser.style = "visibility:hidden";
|
| 181 |
fileButton.style = "";
|
| 182 |
const fileChosenPromise = new Promise((resolve) => {
|