()
| 6 | |
| 7 | |
| 8 | def load_default_image(): |
| 9 | try: |
| 10 | default_image_path = "src/tshirt-black.jpg" |
| 11 | if os.path.exists(default_image_path): |
| 12 | with open(default_image_path, "rb") as f: |
| 13 | return io.BytesIO(f.read()) |
| 14 | except Exception as e: |
| 15 | st.error(f"Error loading default image: {str(e)}") |
| 16 | return None |
| 17 | |
| 18 | def main(): |
| 19 | st.set_page_config(page_title="Visual Search", page_icon=":mag:") |