Spaces:
Build error
Build error
fix: Moving twitter user processing after empty input validation
Browse files
app.py
CHANGED
@@ -107,13 +107,9 @@ with col2:
|
|
107 |
with st.spinner(text="Loading model..."):
|
108 |
model = load_model(model_to_use[expected_lang])
|
109 |
|
110 |
-
usr = client.get_user(username=tw_user)
|
111 |
-
|
112 |
-
# st.write(usr.data.id)
|
113 |
-
|
114 |
-
tw_user = tw_user.replace(' ', '')
|
115 |
-
|
116 |
if go_btn and tw_user != '':
|
|
|
|
|
117 |
with st.spinner(f"Getting to know the '{tw_user}'..."):
|
118 |
tweets_objs = []
|
119 |
while tw_sample >= 100:
|
|
|
107 |
with st.spinner(text="Loading model..."):
|
108 |
model = load_model(model_to_use[expected_lang])
|
109 |
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
if go_btn and tw_user != '':
|
111 |
+
usr = client.get_user(username=tw_user)
|
112 |
+
tw_user = tw_user.replace(' ', '')
|
113 |
with st.spinner(f"Getting to know the '{tw_user}'..."):
|
114 |
tweets_objs = []
|
115 |
while tw_sample >= 100:
|