Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ from sentence_transformers import SentenceTransformer
|
|
| 4 |
import logging
|
| 5 |
|
| 6 |
PINECONE_KEY = st.secrets["PINECONE_KEY"] # app.pinecone.io
|
| 7 |
-
INDEX_ID = '
|
| 8 |
|
| 9 |
@st.experimental_singleton
|
| 10 |
def init_pinecone():
|
|
@@ -89,11 +89,7 @@ def card(thumbnail: str, title: str, urls: list, contexts: list, starts: list, e
|
|
| 89 |
return st.markdown(html, unsafe_allow_html=True)
|
| 90 |
|
| 91 |
channel_map = {
|
| 92 |
-
'
|
| 93 |
-
'Daniel Bourke': 'UCr8O8l5cCX85Oem1d18EezQ',
|
| 94 |
-
'Yannic Kilcher': 'UCZHmQk67mSJgfCCTn7xBfew',
|
| 95 |
-
'AI Coffee Break with Letitia': 'UCobqgqE4i5Kf7wrxRxhToQA',
|
| 96 |
-
'sentdex': 'UCfzlCWGWYyIQ0aLC5w48gBQ'
|
| 97 |
}
|
| 98 |
|
| 99 |
st.write("""
|
|
@@ -101,9 +97,7 @@ st.write("""
|
|
| 101 |
""")
|
| 102 |
|
| 103 |
st.info("""
|
| 104 |
-
YouTube search built as [explained here](https://pinecone.io/learn/openai-whisper)!
|
| 105 |
-
*The current search scope is limited to a few videos talking about ML, NLP, and vector search*. Add requests for channels to include in the [*Community* tab](https://huggingface.co/spaces/jamescalam/ask-youtube/discussions).
|
| 106 |
-
""")
|
| 107 |
|
| 108 |
st.markdown("""
|
| 109 |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
|
@@ -114,8 +108,8 @@ query = st.text_input("Search!", "")
|
|
| 114 |
with st.expander("Advanced Options"):
|
| 115 |
channel_options = st.multiselect(
|
| 116 |
'Channels to Search',
|
| 117 |
-
['
|
| 118 |
-
['
|
| 119 |
)
|
| 120 |
|
| 121 |
if query != "":
|
|
|
|
| 4 |
import logging
|
| 5 |
|
| 6 |
PINECONE_KEY = st.secrets["PINECONE_KEY"] # app.pinecone.io
|
| 7 |
+
INDEX_ID = 'youtube-search'
|
| 8 |
|
| 9 |
@st.experimental_singleton
|
| 10 |
def init_pinecone():
|
|
|
|
| 89 |
return st.markdown(html, unsafe_allow_html=True)
|
| 90 |
|
| 91 |
channel_map = {
|
| 92 |
+
'Breakthrough Church': 'UCRDo9cEexM8laduPnx4EtLQ'
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
}
|
| 94 |
|
| 95 |
st.write("""
|
|
|
|
| 97 |
""")
|
| 98 |
|
| 99 |
st.info("""
|
| 100 |
+
YouTube search built as [explained here](https://pinecone.io/learn/openai-whisper)!""")
|
|
|
|
|
|
|
| 101 |
|
| 102 |
st.markdown("""
|
| 103 |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
|
|
|
| 108 |
with st.expander("Advanced Options"):
|
| 109 |
channel_options = st.multiselect(
|
| 110 |
'Channels to Search',
|
| 111 |
+
['Breakthrough Church'],
|
| 112 |
+
['Breakthrough Church']
|
| 113 |
)
|
| 114 |
|
| 115 |
if query != "":
|