Gregoryjr commited on
Commit
0f64e73
·
unverified ·
1 Parent(s): b3d7546

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -2,7 +2,13 @@ import streamlit as st
2
  from transformers import pipeline
3
  st.title("Milestone #2")
4
  text = st.text_input("write a statement")
5
- model = st.text_input("pick a model to check the the above statement is offensive")
 
 
 
 
 
 
6
  con = st.button("submit")
7
  if con:
8
  classifier = pipeline(model)
 
2
  from transformers import pipeline
3
  st.title("Milestone #2")
4
  text = st.text_input("write a statement")
5
+ import streamlit as st
6
+
7
+ options = ["zero-shot-classification", "nill", "nill3"]
8
+ selected_option = st.selectbox("Select an option", options)
9
+
10
+ model = st.write("You selected:", selected_option)
11
+
12
  con = st.button("submit")
13
  if con:
14
  classifier = pipeline(model)