Spaces:
Runtime error
Runtime error
kasand
commited on
Commit
·
20322fe
1
Parent(s):
cc2042f
test
Browse files- workflows/config.yml +2 -2
- workflows/hn.yml +23 -0
workflows/config.yml
CHANGED
|
@@ -2,8 +2,8 @@
|
|
| 2 |
file: ag_news.yml
|
| 3 |
- name: Search Hacker News front page in French
|
| 4 |
file: aliens.yml
|
| 5 |
-
|
| 6 |
-
|
| 7 |
# - name: Search sports news
|
| 8 |
# file: sports.yml
|
| 9 |
# - name: Search arXiv papers on aliens
|
|
|
|
| 2 |
file: ag_news.yml
|
| 3 |
- name: Search Hacker News front page in French
|
| 4 |
file: aliens.yml
|
| 5 |
+
- name: Search hn
|
| 6 |
+
file: hn.yml
|
| 7 |
# - name: Search sports news
|
| 8 |
# file: sports.yml
|
| 9 |
# - name: Search arXiv papers on aliens
|
workflows/hn.yml
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
app:
|
| 2 |
+
data: front_page
|
| 3 |
+
query: programming
|
| 4 |
+
embeddings:
|
| 5 |
+
path: sentence-transformers/nli-mpnet-base-v2
|
| 6 |
+
tabular:
|
| 7 |
+
idcolumn: url
|
| 8 |
+
textcolumns:
|
| 9 |
+
- title
|
| 10 |
+
workflow:
|
| 11 |
+
index:
|
| 12 |
+
tasks:
|
| 13 |
+
- batch: false
|
| 14 |
+
extract:
|
| 15 |
+
- hits
|
| 16 |
+
method: get
|
| 17 |
+
params:
|
| 18 |
+
tags: null
|
| 19 |
+
task: service
|
| 20 |
+
url: https://hn.algolia.com/api/v1/search?hitsPerPage=50
|
| 21 |
+
- action: tabular
|
| 22 |
+
- action: index
|
| 23 |
+
writable: true
|