You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Update error messages during application initialization to provide user-friendly guidance regarding network issues related to Hugging Face resources.
ErrorNotifier.error('Failed to initialize application: '+err.message,err);
97
+
constuserFriendlyMsg='Since the web resources are hosted on Hugging Face, your network connection may affect the loading of these resources. Please ensure you have a stable connection and refresh the page to try again.\n\n'+
Copy file name to clipboardExpand all lines: docs/js/main.js
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,9 @@ function initApp() {
13
13
try{
14
14
APP.init();
15
15
}catch(error){
16
-
ErrorNotifier.error('Application initialization failed. Please refresh the page.',error);
16
+
constuserFriendlyMsg='Since the web resources are hosted on Hugging Face, your network connection may affect the loading of these resources. Please ensure you have a stable connection and refresh the page to try again.\n\n'+
17
+
'Application initialization failed. Please refresh the page.';
0 commit comments