Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -6,12 +6,11 @@ import keras_nlp
|
|
6 |
|
7 |
|
8 |
css = """
|
9 |
-
body {
|
10 |
margin: 0;
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
justify-content: center;
|
15 |
}
|
16 |
|
17 |
body::before {
|
@@ -21,13 +20,25 @@ body::before {
|
|
21 |
left: 0;
|
22 |
width: 100vw;
|
23 |
height: 100vh;
|
24 |
-
background-image: url('https://stsci-opo.org/STScI-
|
25 |
background-size: cover;
|
26 |
background-repeat: no-repeat;
|
27 |
background-position: center;
|
28 |
-
opacity: 0.
|
29 |
z-index: -1; /* Keep the background behind text */
|
30 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
"""
|
32 |
|
33 |
|
|
|
6 |
|
7 |
|
8 |
css = """
|
9 |
+
html, body {
|
10 |
margin: 0;
|
11 |
+
padding: 0;
|
12 |
+
height: 100%;
|
13 |
+
overflow: hidden;
|
|
|
14 |
}
|
15 |
|
16 |
body::before {
|
|
|
20 |
left: 0;
|
21 |
width: 100vw;
|
22 |
height: 100vh;
|
23 |
+
background-image: url('https://stsci-opo.org/STScI-01J5E849R5W27ZZ2C3QAE9ET75.png');
|
24 |
background-size: cover;
|
25 |
background-repeat: no-repeat;
|
26 |
background-position: center;
|
27 |
+
opacity: 0.1; /* Fainter background image */
|
28 |
z-index: -1; /* Keep the background behind text */
|
29 |
}
|
30 |
+
.gradio-container {
|
31 |
+
display: flex;
|
32 |
+
justify-content: center;
|
33 |
+
align-items: center;
|
34 |
+
height: 100vh; /* Ensure the content is vertically centered */
|
35 |
+
}
|
36 |
+
|
37 |
+
/* Larger text for the output area */
|
38 |
+
.output_class {
|
39 |
+
font-size: 1em; /* Adjust this to control the size of the output text */
|
40 |
+
color: black; /* Ensure the text is readable */
|
41 |
+
}
|
42 |
"""
|
43 |
|
44 |
|