Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +4 -7
src/streamlit_app.py
CHANGED
|
@@ -265,14 +265,11 @@ def get_similar_content(content, n_recommendations=5):
|
|
| 265 |
show_id = content.get('show_id', '')
|
| 266 |
st.write(f"🔍 Searching for similar content to: {title} (ID: {show_id})")
|
| 267 |
|
| 268 |
-
#
|
| 269 |
-
base_url = "https://mtoft20-potm.hf.space/api/v1/db/data/noco/p9pozkcw81t9aee"
|
| 270 |
-
|
| 271 |
-
# URLs for both similarity tables using table IDs
|
| 272 |
similarity_table_urls = [
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
|
| 276 |
]
|
| 277 |
|
| 278 |
similar_items = []
|
|
|
|
| 265 |
show_id = content.get('show_id', '')
|
| 266 |
st.write(f"🔍 Searching for similar content to: {title} (ID: {show_id})")
|
| 267 |
|
| 268 |
+
# URLs for similarity tables using table IDs
|
|
|
|
|
|
|
|
|
|
| 269 |
similarity_table_urls = [
|
| 270 |
+
"https://mtoft20-potm.hf.space/api/v1/db/data/noco/p9pozkcw81t9aee/mp7bnn9tzhojh7k", # Part 1 similarities
|
| 271 |
+
"https://mtoft20-potm.hf.space/api/v1/db/data/noco/p9pozkcw81t9aee/m8e5rglns4acmef", # Part 2 similarities
|
| 272 |
+
"https://mtoft20-potm.hf.space/api/v1/db/data/noco/p9pozkcw81t9aee/m2driodimid10k6" # Part 3 similarities
|
| 273 |
]
|
| 274 |
|
| 275 |
similar_items = []
|