Spaces:
Running
Running
Commit
·
59bad6c
1
Parent(s):
00636d1
Attibution because why not :P
Browse files- gradio_app.py +22 -0
gradio_app.py
CHANGED
@@ -81,6 +81,20 @@ label {
|
|
81 |
justify-content: center;
|
82 |
align-items: center;
|
83 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
"""
|
85 |
|
86 |
def analyze_with_loading(text, progress=gr.Progress()):
|
@@ -163,6 +177,14 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Soft()) as iface:
|
|
163 |
api_name="analyze"
|
164 |
)
|
165 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
if __name__ == "__main__":
|
167 |
# Launch without the 'ssr' argument
|
168 |
iface.launch(
|
|
|
81 |
justify-content: center;
|
82 |
align-items: center;
|
83 |
}
|
84 |
+
|
85 |
+
.footer {
|
86 |
+
text-align: center;
|
87 |
+
position: absolute;
|
88 |
+
bottom: 0;
|
89 |
+
width: 100%;
|
90 |
+
background: rgba(255, 255, 255, 0.9);
|
91 |
+
padding: 10px 0;
|
92 |
+
box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
|
93 |
+
font-size: 1.2em;
|
94 |
+
font-weight: bold;
|
95 |
+
color: #6366f1;
|
96 |
+
}
|
97 |
+
|
98 |
"""
|
99 |
|
100 |
def analyze_with_loading(text, progress=gr.Progress()):
|
|
|
177 |
api_name="analyze"
|
178 |
)
|
179 |
|
180 |
+
#Footer section
|
181 |
+
gr.HTML("""
|
182 |
+
<div class="footer">
|
183 |
+
<p>Made with 💖 by Kuber Mehta</p>
|
184 |
+
</div>
|
185 |
+
""")
|
186 |
+
|
187 |
+
|
188 |
if __name__ == "__main__":
|
189 |
# Launch without the 'ssr' argument
|
190 |
iface.launch(
|