Code Snip
Code Snip
def copy_hex_code(hex_code):
st.write(hex_code)
st.experimental_set_query_params(hex_code=hex_code)
def main():
st.set_page_config(page_title="Color Analyser GUI", page_icon=":eyeglasses:",
layout="wide")
st.title("Color Analyzer")
st.sidebar.title("Settings")
if run_button:
if uploaded_file is None:
st.error("Please select an image")
return
if __name__ == "__main__":
main()
import streamlit as st
from PIL import Image
from sklearn.cluster import KMeans
import numpy as np
import clipboard
import matplotlib.pyplot as plt
def copy_hex_code(hex_code):
st.write(f"Copied {hex_code} to clipboard")
clipboard.copy(hex_code)
def main():
st.set_page_config(page_title="Color Analyser GUI", page_icon=":eyeglasses:",
layout="wide")
st.title("Color Analyzer")
st.sidebar.title("Settings")
if __name__ == "__main__":
main()
import streamlit as st
from PIL import Image
from sklearn.cluster import KMeans
import numpy as np
import clipboard
import matplotlib.pyplot as plt
def copy_hex_code(hex_code):
st.write(f"Copied {hex_code} to clipboard")
clipboard.copy(hex_code)
def main():
st.set_page_config(page_title="Color Analyser GUI", page_icon=":eyeglasses:",
layout="wide")
st.title("Color Analyzer")
st.sidebar.title("Settings")
if __name__ == "__main__":
main()