Spaces:
Runtime error
Runtime error
johnowhitaker
commited on
Commit
·
071cb1b
1
Parent(s):
91c5b5a
Testing inputs
Browse files
app.py
CHANGED
@@ -1,5 +1,18 @@
|
|
1 |
import streamlit as st
|
2 |
import pandas as pd
|
3 |
-
import
|
|
|
4 |
|
5 |
-
st.title('Test')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import streamlit as st
|
2 |
import pandas as pd
|
3 |
+
import twint
|
4 |
+
import nest_asyncio
|
5 |
|
6 |
+
st.title('Test')
|
7 |
+
|
8 |
+
with st.form("my_form"):
|
9 |
+
st.write("Inside the form")
|
10 |
+
user = st.text_input("Twitter Username")
|
11 |
+
n_tweets = st.slider('How Many Tweets', 20, 2000, 20)
|
12 |
+
|
13 |
+
# Every form must have a submit button.
|
14 |
+
submitted = st.form_submit_button("Submit")
|
15 |
+
if submitted:
|
16 |
+
st.write("user", user, "n_tweets", n_tweets)
|
17 |
+
|
18 |
+
st.write("Outside the form")
|