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

Function main

pages/visual_search.py:18–169  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16 return None
17
18def main():
19 st.set_page_config(page_title="Visual Search", page_icon=":mag:")
20 st.markdown(
21 """
22 <style>
23 .header {
24 font-size: 2.5rem;
25 font-weight: bold;
26 color: #81E831;
27 margin-bottom: 1rem;
28 text-align: center;
29 }
30 .nav-button {
31 display: inline-block;
32 padding: 0.5rem 1rem;
33 background-color: #81E831;
34 color: white !important;
35 text-decoration: none;
36 border-radius: 4px;
37 margin-top: 1rem;
38 }
39 .nav-button:hover {
40 color: white !important;
41 text-decoration: none;
42 }
43
44 .stButton button {
45 background-color: #81E831 !important;
46 border-color: #81E831 !important;
47 color: white !important;
48 }
49 .stButton button:hover {
50 background-color: #6bc729 !important;
51 border-color: #6bc729 !important;
52 }
53 </style>
54 """,
55 unsafe_allow_html=True
56 )
57
58 # Custom slider styling
59 st.markdown(''&#x27;
60 <style>
61 div.stSlider > div[data-baseweb="slider"] > div[data-testid="stTickBar"] > div {
62 background: rgb(1 1 1 / 0%);
63 }
64 div.stSlider > div[data-baseweb="slider"] > div > div > div[role="slider"] {
65 background-color: #81E831;
66 box-shadow: #81E831 0px 0px 0px 0.2rem;
67 }
68 div.stSlider > div[data-baseweb="slider"] > div > div > div > div {
69 color: #81E831;
70 }
71 div.stSlider > div[data-baseweb="slider"] > div > div {
72 background: linear-gradient(to right, #81E831 var(--slider-progress), rgba(151, 166, 195, 0.25) var(--slider-progress));
73 }
74 </style>
75 ''&#x27;, unsafe_allow_html=True)

Callers 1

visual_search.pyFile · 0.70

Calls 3

search_similar_videosFunction · 0.90
create_video_embedFunction · 0.90
load_default_imageFunction · 0.85

Tested by

no test coverage detected