CoolFace
Apppublic

atrenux/segmentation

sourceHugging Faceunknownupdated 3y agoView on Hugging Face
0likes
app.py25 linesDownload Raw Back to root
1# -*- coding: utf-8 -*-2"""3Created on Sun May 21 22:17:22 20234 5@author: forti6 7env: villa 28"""9 10 11import streamlit as st12import altair as alt13from vega_datasets import data14 15df = data.cars()16source = df.rename(columns={'Horsepower': 'Number of Products', 'Miles_per_Gallon': 'Total Sales ($)', 'Origin': 'Client Nationality'})17chart = alt.Chart(source).mark_circle().encode(18    x='Number of Products',19    y='Total Sales ($)',20    color='Client Nationality',21).interactive()22 23 24st.altair_chart(chart, theme="streamlit", use_container_width=True)25