# import gradio as gr # def render_home(): # with gr.Column(visible=True) as page: # with gr.Row(): # with gr.Column(scale=2): # gr.Markdown(""" # # Welcome to ShutterSearch # ### Your intelligent local-first photo archive. # ShutterSearch uses state-of-the-art vision models to understand your photography. # Keep your photos organized in collections and find them instantly with natural language search. # - **Semantic Search**: Find "sunset on a beach" even if you didn't tag it. # - **Automatic Captioning**: Powered by MiniCPM-V-4.6. # - **Privacy First**: Everything runs on your terms. # """) # start_btn = gr.Button("Start Ingesting", variant="primary", size="lg") # with gr.Column(scale=1): # gr.Image("https://images.unsplash.com/photo-1542038784456-1ea8e935640e?q=80&w=1000&auto=format&fit=crop", # label="Photography", show_label=False, interactive=False) # return page, start_btn import gradio as gr import os def render_home(): root_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) img_path = os.path.join(root_dir, "public", "heroImage.png") print(f"Root directory: {root_dir}") print(f"Image path: {img_path}") print(f"File exists: {os.path.exists(img_path)}") with gr.Column(visible=False) as page: gr.HTML("""
Your intelligent, privacy-first photo archive