Spaces:
Runtime error
Runtime error
Test 3
Browse files
app.py
CHANGED
|
@@ -51,16 +51,17 @@ with st.form("my_form"):
|
|
| 51 |
youtube_api_key = st.text_input('API key')
|
| 52 |
st.write('Enter Youtube Video ID/ Video Link')
|
| 53 |
youtube_video_id = st.text_input('Video')
|
| 54 |
-
print(youtube_api_key)
|
| 55 |
-
st.write("API here",youtube_api_key)
|
| 56 |
-
if not youtube_api_key:
|
| 57 |
-
youtube_api_key= os.environ["youtube_api"]
|
| 58 |
submitted = st.form_submit_button("Submit")
|
| 59 |
|
| 60 |
|
| 61 |
if submitted:
|
| 62 |
youtube_video_id = find_video_id(youtube_video_id)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
df = extract_comments_from_video(youtube_video_id,youtube_api_key)
|
|
|
|
| 64 |
if len(df) > 0:
|
| 65 |
st.dataframe(df)
|
| 66 |
else:
|
|
|
|
| 51 |
youtube_api_key = st.text_input('API key')
|
| 52 |
st.write('Enter Youtube Video ID/ Video Link')
|
| 53 |
youtube_video_id = st.text_input('Video')
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
submitted = st.form_submit_button("Submit")
|
| 55 |
|
| 56 |
|
| 57 |
if submitted:
|
| 58 |
youtube_video_id = find_video_id(youtube_video_id)
|
| 59 |
+
print(youtube_api_key)
|
| 60 |
+
st.write("API here",youtube_api_key)
|
| 61 |
+
if not youtube_api_key:
|
| 62 |
+
youtube_api_key= os.environ["youtube_api"]
|
| 63 |
df = extract_comments_from_video(youtube_video_id,youtube_api_key)
|
| 64 |
+
|
| 65 |
if len(df) > 0:
|
| 66 |
st.dataframe(df)
|
| 67 |
else:
|