MCPcopy Index your code
hub / github.com/Hrishikesh332/dev-ai / load_default_image

Function load_default_image

pages/visual_search.py:8–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6
7
8def 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
18def main():
19 st.set_page_config(page_title="Visual Search", page_icon=":mag:")

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected