File size: 433 Bytes
e03530d
 
071cb1b
 
e03530d
071cb1b
 
360bf8a
 
 
 
071cb1b
360bf8a
 
 
 
071cb1b
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import streamlit as st
import pandas as pd
import twint 
import nest_asyncio

st.title('Test')

with st.form("my_form"):
  st.write("Inside the form")
  user = st.text_input("Twitter Username")
  n_tweets = st.slider('How Many Tweets', 20, 2000, 20)

  # Every form must have a submit button.
  submitted = st.form_submit_button("Submit")
  if submitted:
    st.write("user", user, "n_tweets", n_tweets)

st.write("Outside the form")