Chris Addis commited on
Commit
31a3093
·
1 Parent(s): 5ca2efc

add logos

Browse files
Files changed (4) hide show
  1. .gitattributes +2 -0
  2. app.py +10 -4
  3. images/nhm_logo.png +3 -0
  4. 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.Markdown("# AI Alt-text Generator")
82
- gr.Markdown("Upload one or more images to generate Alt-text")
83
- gr.Markdown("Developed by the Natural History Museum in Partnership with National Museums Liverpool.")
 
 
 
 
 
 
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="anthropic/claude-3.7-sonnet",
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

  • SHA256: d0aed8b44f30983cf3c8cfd0d60aae2c1cb3a9d07b0d3e6a46425c4462739eff
  • Pointer size: 131 Bytes
  • Size of remote file: 194 kB
images/nml_logo.png ADDED

Git LFS Details

  • SHA256: e618f84c9da97d2e4f2d1d3603f78d2a394060617ed455cd42a18a01658e26bb
  • Pointer size: 130 Bytes
  • Size of remote file: 20.7 kB