Spaces:
Runtime error
Runtime error
update max comments
Browse files
app.py
CHANGED
|
@@ -22,7 +22,6 @@ if not os.path.exists('repo_directory'):
|
|
| 22 |
st.error("Error: Oops there's an issue on our end, please wait a moment and try again.")
|
| 23 |
st.stop()
|
| 24 |
|
| 25 |
-
# from repo_directory.all_utils import *
|
| 26 |
from repo_directory.utils.chart_utils import *
|
| 27 |
from repo_directory.youtube_comment_class import *
|
| 28 |
|
|
@@ -163,7 +162,6 @@ with main_page:
|
|
| 163 |
<i class='fa fa-linkedin-square'></i> <span style='color: #000000'>Marcus Singh</span></a>
|
| 164 |
</b></p>
|
| 165 |
</div>
|
| 166 |
-
|
| 167 |
""", unsafe_allow_html=True)
|
| 168 |
|
| 169 |
st.markdown("<hr>", unsafe_allow_html=True)
|
|
@@ -195,8 +193,9 @@ if (st.session_state.rerun_button == "QUERYING") and (st.session_state["video_li
|
|
| 195 |
with st.spinner('Querying comments and running models'):
|
| 196 |
yt_parser = st.session_state["YouTubeParser"]
|
| 197 |
try:
|
| 198 |
-
yt_parser.
|
| 199 |
-
yt_parser.
|
|
|
|
| 200 |
except:
|
| 201 |
st.error("Error: Unable to query comments, incorrect YouTube URL.")
|
| 202 |
st.stop()
|
|
@@ -373,4 +372,4 @@ with st.sidebar:
|
|
| 373 |
st.text_input("Keyword search",
|
| 374 |
disabled=True)
|
| 375 |
st.button('Please query comments before filtering',
|
| 376 |
-
disabled=True)
|
|
|
|
| 22 |
st.error("Error: Oops there's an issue on our end, please wait a moment and try again.")
|
| 23 |
st.stop()
|
| 24 |
|
|
|
|
| 25 |
from repo_directory.utils.chart_utils import *
|
| 26 |
from repo_directory.youtube_comment_class import *
|
| 27 |
|
|
|
|
| 162 |
<i class='fa fa-linkedin-square'></i> <span style='color: #000000'>Marcus Singh</span></a>
|
| 163 |
</b></p>
|
| 164 |
</div>
|
|
|
|
| 165 |
""", unsafe_allow_html=True)
|
| 166 |
|
| 167 |
st.markdown("<hr>", unsafe_allow_html=True)
|
|
|
|
| 193 |
with st.spinner('Querying comments and running models'):
|
| 194 |
yt_parser = st.session_state["YouTubeParser"]
|
| 195 |
try:
|
| 196 |
+
yt_parser.get_comments(st.session_state['video_link'], st.session_state['max_comments'])
|
| 197 |
+
yt_parser.get_video_title(st.session_state['video_link'])
|
| 198 |
+
|
| 199 |
except:
|
| 200 |
st.error("Error: Unable to query comments, incorrect YouTube URL.")
|
| 201 |
st.stop()
|
|
|
|
| 372 |
st.text_input("Keyword search",
|
| 373 |
disabled=True)
|
| 374 |
st.button('Please query comments before filtering',
|
| 375 |
+
disabled=True)
|