AI_Patent_Classification / customization.py
joaomorossini's picture
Update app title with custom javascript
f193b0b
raw
history blame
756 Bytes
js = """
function createGradioStaticText() {
var container = document.createElement('div');
container.id = 'gradio-animation'; // Keep the ID for consistent styling
container.style.fontSize = '2em';
container.style.textAlign = 'center';
container.style.marginBottom = '10px';
container.style.fontFamily = 'Roboto, sans-serif';
var text = '🤖🎯📃 Zero-Shot Patent Classifier 📃🎯🤖';
container.innerText = text; // Set the text content directly
var gradioContainer = document.querySelector('.gradio-container');
gradioContainer.insertBefore(container, gradioContainer.firstChild);
}
"""
css = """
.all_results {
height: 90vh;
}
.reasoning_results {
overflow: scroll;
height: 85vh;
}
"""