Chris Addis commited on
Commit ·
31a3093
1
Parent(s): 5ca2efc
add logos
Browse files- .gitattributes +2 -0
- app.py +10 -4
- images/nhm_logo.png +3 -0
- images/nml_logo.png +3 -0
.gitattributes
CHANGED
|
@@ -35,3 +35,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
images/* filter=lfs diff=lfs merge=lfs -text
|
| 37 |
images/*.png filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
images/* filter=lfs diff=lfs merge=lfs -text
|
| 37 |
images/*.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
images/nhm_logo.png filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
images/nml_logo.png filter=lfs diff=lfs merge=lfs -text
|
app.py
CHANGED
|
@@ -78,9 +78,15 @@ def get_base_filename(filepath):
|
|
| 78 |
# Define the Gradio interface
|
| 79 |
def create_demo():
|
| 80 |
with gr.Blocks(theme=gr.themes.Monochrome()) as demo:
|
| 81 |
-
gr.
|
| 82 |
-
|
| 83 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
|
| 85 |
with gr.Row():
|
| 86 |
# Left column: Controls and uploads
|
|
@@ -96,7 +102,7 @@ def create_demo():
|
|
| 96 |
model_choice = gr.Dropdown(
|
| 97 |
choices=["google/gemini-2.0-flash-001", "anthropic/claude-3.7-sonnet", "openai/chatgpt-4o-latest"],
|
| 98 |
label="Select Model",
|
| 99 |
-
value="
|
| 100 |
visible=True
|
| 101 |
)
|
| 102 |
|
|
|
|
| 78 |
# Define the Gradio interface
|
| 79 |
def create_demo():
|
| 80 |
with gr.Blocks(theme=gr.themes.Monochrome()) as demo:
|
| 81 |
+
with gr.Row():
|
| 82 |
+
with gr.Column(scale=3):
|
| 83 |
+
gr.Markdown("# AI Alt-text Generator")
|
| 84 |
+
gr.Markdown("Upload one or more images to generate Alt-text")
|
| 85 |
+
gr.Markdown("Developed by the Natural History Museum in Partnership with National Museums Liverpool.")
|
| 86 |
+
with gr.Column(scale=1):
|
| 87 |
+
with gr.Row():
|
| 88 |
+
gr.Image("images/nhm_logo.png", show_label=False, height=80)
|
| 89 |
+
gr.Image("images/nml_logo.png", show_label=False, height=80)
|
| 90 |
|
| 91 |
with gr.Row():
|
| 92 |
# Left column: Controls and uploads
|
|
|
|
| 102 |
model_choice = gr.Dropdown(
|
| 103 |
choices=["google/gemini-2.0-flash-001", "anthropic/claude-3.7-sonnet", "openai/chatgpt-4o-latest"],
|
| 104 |
label="Select Model",
|
| 105 |
+
value="google/gemini-2.0-flash-001",
|
| 106 |
visible=True
|
| 107 |
)
|
| 108 |
|
images/nhm_logo.png
ADDED
|
Git LFS Details
|
images/nml_logo.png
ADDED
|
Git LFS Details
|