Spaces:
Runtime error
Runtime error
wendru18
commited on
Commit
·
8c33206
1
Parent(s):
e82393a
changed mobile link fix
Browse files
app.py
CHANGED
|
@@ -221,8 +221,8 @@ def main(openAI_key, urls_text, question, split_by_topic, segment_length, n_neig
|
|
| 221 |
for url in urls:
|
| 222 |
|
| 223 |
if "youtu.be" in url:
|
| 224 |
-
url = url.replace("youtu.be", "youtube.com/watch?v=")
|
| 225 |
-
|
| 226 |
df, title, author = get_youtube_data(url)
|
| 227 |
|
| 228 |
title = add_to_dict(title, url)
|
|
|
|
| 221 |
for url in urls:
|
| 222 |
|
| 223 |
if "youtu.be" in url:
|
| 224 |
+
url = url.replace("youtu.be/", "youtube.com/watch?v=")
|
| 225 |
+
|
| 226 |
df, title, author = get_youtube_data(url)
|
| 227 |
|
| 228 |
title = add_to_dict(title, url)
|