Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,86 @@ component_img_encoded = encode_image("Images/UML/component.png")
|
|
25 |
colab_img_encoded = encode_image("Images/UML/colab.png")
|
26 |
activity_img_encoded = encode_image("Images/UML/activity.png")
|
27 |
|
28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
gr.Markdown("# Welcome to The Linguistic Lens 👓🗣️")
|
30 |
with gr.Tabs():
|
31 |
with gr.TabItem("Intro"):
|
|
|
25 |
colab_img_encoded = encode_image("Images/UML/colab.png")
|
26 |
activity_img_encoded = encode_image("Images/UML/activity.png")
|
27 |
|
28 |
+
css = '''
|
29 |
+
/* Header Styling */
|
30 |
+
h3, h4 {
|
31 |
+
margin-top: 1.2em;
|
32 |
+
margin-bottom: 0.6em;
|
33 |
+
font-weight: bold;
|
34 |
+
}
|
35 |
+
|
36 |
+
h3 {
|
37 |
+
font-size: 1.7em;
|
38 |
+
border-bottom: 2px solid #00b9c2;
|
39 |
+
color: 00b9c2;
|
40 |
+
padding-bottom: 0.3em;
|
41 |
+
margin-bottom: 1em;
|
42 |
+
}
|
43 |
+
|
44 |
+
h4 {
|
45 |
+
font-size: 1.5em;
|
46 |
+
}
|
47 |
+
|
48 |
+
code {
|
49 |
+
color: rgb(202 253 255);
|
50 |
+
}
|
51 |
+
|
52 |
+
code1{
|
53 |
+
color: #00b9c2;
|
54 |
+
}
|
55 |
+
|
56 |
+
/* Text Emphasis */
|
57 |
+
p, li {
|
58 |
+
text-align: justify;
|
59 |
+
margin: 0.6em 0;
|
60 |
+
font-size: 1.2em;
|
61 |
+
}
|
62 |
+
|
63 |
+
em {
|
64 |
+
color: #6c757d;
|
65 |
+
font-style: italic;
|
66 |
+
}
|
67 |
+
|
68 |
+
/* List Styling */
|
69 |
+
ul {
|
70 |
+
padding-left: 1.2em;
|
71 |
+
margin-bottom: 1em;
|
72 |
+
}
|
73 |
+
|
74 |
+
li {
|
75 |
+
margin-bottom: 0.5em;
|
76 |
+
}
|
77 |
+
|
78 |
+
/* Link Styling */
|
79 |
+
a {
|
80 |
+
color: #007bff;
|
81 |
+
text-decoration: none;
|
82 |
+
}
|
83 |
+
|
84 |
+
a:hover {
|
85 |
+
text-decoration: underline;
|
86 |
+
}
|
87 |
+
|
88 |
+
/* Image Styling */
|
89 |
+
img {
|
90 |
+
border-radius: 8px;
|
91 |
+
box-shadow: -8px 8px 20px 0px rgb(0 185 194)
|
92 |
+
i
|
93 |
+
}
|
94 |
+
|
95 |
+
/* Divider Styling */
|
96 |
+
hr {
|
97 |
+
border: 0;
|
98 |
+
height: 1px;
|
99 |
+
background: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,0.3), rgba(0,0,0,0));
|
100 |
+
margin: 1.5em 0;
|
101 |
+
}
|
102 |
+
|
103 |
+
footer {visibility: hidden}
|
104 |
+
'''
|
105 |
+
|
106 |
+
|
107 |
+
with gr.Blocks(theme=gr.themes.Ocean(font=[gr.themes.GoogleFont("Noto Sans")]), css=css) as main_interface:
|
108 |
gr.Markdown("# Welcome to The Linguistic Lens 👓🗣️")
|
109 |
with gr.Tabs():
|
110 |
with gr.TabItem("Intro"):
|