Spaces:
				
			
			
	
			
			
		Sleeping
		
	
	
	
			
			
	
	
	
	
		
		
		Sleeping
		
	File size: 563 Bytes
			
			| dee15f4 4753750 dee15f4 4753750 1a1da4f 4753750 a964948 1a1da4f a58505a f017d85 dee15f4 a964948 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 
import streamlit as st
from transformers import pipeline
""""
pipe = pipeline('sentiment-analysis')
st.title("Analyse de sentiment")
#Textbox for text user is entering
out = pipe(text)
st.write("Sentiment du text: ")
st.write(out)
"""
classifier = pipeline("zero-shot-classification",
                      model="morit/french_xlm_xnli")
text = st.text_input('Entrer le texte a analyser') 
andidate_labels = ["politique", "sport"]
hypothesis_template = "Cet example est {}"
st.write(classifier(text, candidate_labels, hypothesis_template=hypothesis_template)) |