Remove obsolete stuff after custom gradio updates

This commit is contained in:
oobabooga 2026-03-04 16:43:32 -08:00
parent da3010c3ed
commit 942ff8fcb4
2 changed files with 0 additions and 19 deletions

View file

@ -351,18 +351,3 @@ function handleMorphdomUpdate(data) {
}
});
}
//------------------------------------------------
// Suppress "Attempted to select a non-interactive or hidden tab" warning
//------------------------------------------------
(function() {
const originalWarn = console.warn;
console.warn = function(...args) {
if (args[0] && typeof args[0] === "string" && args[0].includes("Attempted to select a non-interactive or hidden tab")) {
return;
}
originalWarn.apply(console, args);
};
})();

View file

@ -28,10 +28,6 @@ warnings.filterwarnings('ignore', category=UserWarning, message='Field "model_na
import gradio as gr
import matplotlib
matplotlib.use('Agg') # This fixes LaTeX rendering on some systems
import os
import signal
import sys