tweet-snest / app.py
wilmerags's picture
feat: Set step of 10 tweets per number_input change
33108e8
raw
history blame
470 Bytes
import streamlit as st
import tweepy
client = tweepy.Client(bearer_token=st.secrets["tw_bearer_token"])
st.title("Tweet-SNEst")
st.write("Visualize tweets embeddings in 2D using colors for topics labels.")
col1, col2 = st.columns(2)
with col1:
tw_user = st.text_input("Twitter handle", "huggingface")
with col2:
sample = st.number_input("Maximum number of tweets to use", 1, 300, 100, 10)
usr = client.get_user(username=tw_user)
st.write(usr.data.id)