working???
Browse files
app.py
CHANGED
|
@@ -1,5 +1,39 @@
|
|
| 1 |
-
from transformers import pipeline
|
| 2 |
import streamlit as st
|
| 3 |
|
| 4 |
-
#
|
| 5 |
-
st.write("Hello
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
+
# fancy streamlit app saying hello world
|
| 4 |
+
st.write("Hello World!")
|
| 5 |
+
|
| 6 |
+
# add nice drawings
|
| 7 |
+
st.image("https://streamlit.io/images/brand/streamlit-logo-secondary-colormark-darktext.png")
|
| 8 |
+
|
| 9 |
+
# add a button
|
| 10 |
+
if st.button("Say hello"):
|
| 11 |
+
st.write("Hello!")
|
| 12 |
+
|
| 13 |
+
# add a slider
|
| 14 |
+
slider = st.slider("Pick a number")
|
| 15 |
+
st.write(slider)
|
| 16 |
+
|
| 17 |
+
# add a checkbox
|
| 18 |
+
checkbox = st.checkbox("I agree")
|
| 19 |
+
st.write(checkbox)
|
| 20 |
+
|
| 21 |
+
# add a radio button
|
| 22 |
+
radio = st.radio("Pick one", ["Option 1", "Option 2", "Option 3"])
|
| 23 |
+
st.write(radio)
|
| 24 |
+
|
| 25 |
+
# add a select box
|
| 26 |
+
selectbox = st.selectbox("Pick one", ["Option 1", "Option 2", "Option 3"])
|
| 27 |
+
st.write(selectbox)
|
| 28 |
+
|
| 29 |
+
# add a multiselect
|
| 30 |
+
multiselect = st.multiselect("Pick one or more", ["Option 1", "Option 2", "Option 3"])
|
| 31 |
+
st.write(multiselect)
|
| 32 |
+
|
| 33 |
+
# add a text input
|
| 34 |
+
text_input = st.text_input("Enter some text")
|
| 35 |
+
st.write(text_input)
|
| 36 |
+
|
| 37 |
+
# add a number input
|
| 38 |
+
number_input = st.number_input("Enter a number")
|
| 39 |
+
st.write(number_input)
|