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;
}
"""