Wootang01 commited on
Commit
e7429d7
·
1 Parent(s): 3f97915

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ from transformers import pipeline
3
+
4
+ st.title("Text Classifier - BART-Large-MNLI")
5
+ st.caption("Input text and labels. Submit. The machine will classify the text according to the labels.")
6
+
7
+ classifier = pipeline('zero-shot-classification')
8
+
9
+ form = st.form(key='zeroclassifier_form')
10
+ input_text = form.text_input(label='Input Text')
11
+ labels = form.text_input(label='Labels')
12
+ submit_button = form.form_submit_button(label='Submit')