Add logos on the footer
Browse files- app.py +11 -0
- logos/archimedes logo GB copy.jpg +0 -0
- logos/columbia.png +0 -0
- logos/finai-logo.jpg +0 -0
- logos/id7TUpk-PU_1724376372691.jpeg +0 -0
- logos/manc.gif +0 -0
- logos/openfinance.jpg +0 -0
- logos/uf.png +0 -0
- logos/wuhan.png +0 -0
- requirements.txt +3 -3
app.py
CHANGED
@@ -3,6 +3,7 @@ import gradio as gr
|
|
3 |
import pandas as pd
|
4 |
from apscheduler.schedulers.background import BackgroundScheduler
|
5 |
from huggingface_hub import snapshot_download
|
|
|
6 |
|
7 |
from src.about import (
|
8 |
CITATION_BUTTON_LABEL,
|
@@ -172,6 +173,10 @@ def filter_models(
|
|
172 |
def uncheck_all():
|
173 |
return [], [], [], [], [], [], [], [], [], []
|
174 |
|
|
|
|
|
|
|
|
|
175 |
demo = gr.Blocks(css=custom_css)
|
176 |
with demo:
|
177 |
gr.HTML(TITLE)
|
@@ -478,6 +483,12 @@ with demo:
|
|
478 |
submission_result,
|
479 |
)
|
480 |
|
|
|
|
|
|
|
|
|
|
|
|
|
481 |
with gr.Row():
|
482 |
with gr.Accordion("π Citation", open=False):
|
483 |
citation_button = gr.Textbox(
|
|
|
3 |
import pandas as pd
|
4 |
from apscheduler.schedulers.background import BackgroundScheduler
|
5 |
from huggingface_hub import snapshot_download
|
6 |
+
import os
|
7 |
|
8 |
from src.about import (
|
9 |
CITATION_BUTTON_LABEL,
|
|
|
173 |
def uncheck_all():
|
174 |
return [], [], [], [], [], [], [], [], [], []
|
175 |
|
176 |
+
# Get a list of all logo files in the directory
|
177 |
+
logos_dir = "logos"
|
178 |
+
logo_files = [f for f in os.listdir(logos_dir) if f.endswith(('.png', '.jpg', '.jpeg'))]
|
179 |
+
|
180 |
demo = gr.Blocks(css=custom_css)
|
181 |
with demo:
|
182 |
gr.HTML(TITLE)
|
|
|
483 |
submission_result,
|
484 |
)
|
485 |
|
486 |
+
# Footer with logos
|
487 |
+
with gr.Row(elem_id="footer"):
|
488 |
+
for logo in logo_files:
|
489 |
+
logo_path = os.path.join(logos_dir, logo)
|
490 |
+
gr.Image(logo_path, show_label=False, elem_id="logo-image", width=100, height=100)
|
491 |
+
|
492 |
with gr.Row():
|
493 |
with gr.Accordion("π Citation", open=False):
|
494 |
citation_button = gr.Textbox(
|
logos/archimedes logo GB copy.jpg
ADDED
logos/columbia.png
ADDED
logos/finai-logo.jpg
ADDED
logos/id7TUpk-PU_1724376372691.jpeg
ADDED
logos/manc.gif
ADDED
logos/openfinance.jpg
ADDED
logos/uf.png
ADDED
logos/wuhan.png
ADDED
requirements.txt
CHANGED
@@ -2,14 +2,14 @@ APScheduler==3.10.1
|
|
2 |
black==23.11.0
|
3 |
click==8.1.3
|
4 |
datasets==2.14.5
|
5 |
-
gradio
|
6 |
-
gradio_client==
|
7 |
huggingface-hub>=0.18.0
|
8 |
matplotlib==3.7.1
|
9 |
numpy==1.24.2
|
10 |
pandas==2.0.0
|
11 |
python-dateutil==2.8.2
|
12 |
-
requests==2.
|
13 |
tqdm==4.65.0
|
14 |
transformers==4.35.2
|
15 |
tokenizers>=0.15.0
|
|
|
2 |
black==23.11.0
|
3 |
click==8.1.3
|
4 |
datasets==2.14.5
|
5 |
+
gradio==4.42.0
|
6 |
+
gradio_client==1.3.0
|
7 |
huggingface-hub>=0.18.0
|
8 |
matplotlib==3.7.1
|
9 |
numpy==1.24.2
|
10 |
pandas==2.0.0
|
11 |
python-dateutil==2.8.2
|
12 |
+
requests==2.32.3
|
13 |
tqdm==4.65.0
|
14 |
transformers==4.35.2
|
15 |
tokenizers>=0.15.0
|