File size: 739 Bytes
f1f2665 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
from traning_zone.classe_prediction.prediction_classe import *
import streamlit as st
import plotly.express as px
import warnings
warnings.filterwarnings("ignore")
import matplotlib.pyplot as plt
import seaborn as sns
sns.set()
sns.set(rc={'figure.figsize':(14.7,10.27)})
st.title("Classification")
def get_data() :
data = None
uploaded_file = st.file_uploader("Choose a CSV file with the separator ',' ", type=["csv"])
if uploaded_file is not None:
data = pd.read_csv(uploaded_file,dtype=str, sep=",")
return data
inputs = get_data()
inputs
if inputs != None :
X = inputs.DESCRIPTION
pred = PredictionV(X)
data = pred.prediction("spacy_spacy")
st.dataframe(data) |