Spaces:
Runtime error
Runtime error
test3
Browse files
app.py
CHANGED
|
@@ -57,9 +57,10 @@ with st.form("my_form"):
|
|
| 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
|
| 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:
|
|
|
|
| 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,len(youtube_api_key))
|
| 61 |
+
if len(youtube_api_key):
|
| 62 |
youtube_api_key= os.environ["youtube_api"]
|
| 63 |
+
st.write("API here",os.environ["youtube_api"],len(os.environ["youtube_api"]))
|
| 64 |
df = extract_comments_from_video(youtube_video_id,youtube_api_key)
|
| 65 |
|
| 66 |
if len(df) > 0:
|