Gregoryjr
commited on
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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)
|