Commit
Β·
f193b0b
1
Parent(s):
d21c9dd
Update app title with custom javascript
Browse files- customization.py +1 -18
customization.py
CHANGED
@@ -1,20 +1,3 @@
|
|
1 |
-
# js = """
|
2 |
-
# function createTitle() {
|
3 |
-
# var container = document.createElement('div');
|
4 |
-
# container.id = 'app-title';
|
5 |
-
# container.style.fontSize = '2em';
|
6 |
-
# container.style.fontWeight = 'bold';
|
7 |
-
# container.style.textAlign = 'center';
|
8 |
-
# container.style.marginBottom = '20px';
|
9 |
-
#
|
10 |
-
# var text = 'Automated Patent Classification with NLP';
|
11 |
-
#
|
12 |
-
# var gradioContainer = document.querySelector('.gradio-container');
|
13 |
-
# gradioContainer.insertBefore(container, gradioContainer.firstChild);
|
14 |
-
#
|
15 |
-
# return 'Title created';
|
16 |
-
# }
|
17 |
-
# """
|
18 |
js = """
|
19 |
function createGradioStaticText() {
|
20 |
var container = document.createElement('div');
|
@@ -24,7 +7,7 @@ function createGradioStaticText() {
|
|
24 |
container.style.marginBottom = '10px';
|
25 |
container.style.fontFamily = 'Roboto, sans-serif';
|
26 |
|
27 |
-
var text = 'Zero-Shot Patent Classifier';
|
28 |
container.innerText = text; // Set the text content directly
|
29 |
|
30 |
var gradioContainer = document.querySelector('.gradio-container');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
js = """
|
2 |
function createGradioStaticText() {
|
3 |
var container = document.createElement('div');
|
|
|
7 |
container.style.marginBottom = '10px';
|
8 |
container.style.fontFamily = 'Roboto, sans-serif';
|
9 |
|
10 |
+
var text = 'π€π―π Zero-Shot Patent Classifier ππ―π€';
|
11 |
container.innerText = text; // Set the text content directly
|
12 |
|
13 |
var gradioContainer = document.querySelector('.gradio-container');
|