-
Notifications
You must be signed in to change notification settings - Fork 2
/
HuggingFace.json
330 lines (330 loc) · 7.6 KB
/
HuggingFace.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
{
"name": "My workflow",
"nodes": [
{
"parameters": {
"mode": "combine",
"combinationMode": "mergeByPosition",
"options": {}
},
"id": "640ee1a5-e189-4db8-a4a6-89285a33fa1d",
"name": "Merge",
"type": "n8n-nodes-base.merge",
"typeVersion": 2.1,
"position": [
1300,
540
]
},
{
"parameters": {
"mode": "combine",
"combinationMode": "mergeByPosition",
"options": {}
},
"id": "03f8c0e9-4edd-42f0-8a72-5fa60bdb3fc9",
"name": "Merge1",
"type": "n8n-nodes-base.merge",
"typeVersion": 2.1,
"position": [
1720,
300
]
},
{
"parameters": {
"rule": {
"interval": [
{
"field": "weeks",
"triggerAtDay": [
1
],
"triggerAtHour": 8
}
]
}
},
"id": "0aef0065-ff53-4d31-86f7-8d5e5a517bfe",
"name": "Monday 8 am",
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1.1,
"position": [
700,
560
]
},
{
"parameters": {
"text": "=# Top 10 Trending Models\n\nHere is a list of the Top 10 trending models on Hugging Face with a brief summarization:",
"options": {}
},
"id": "7b5ad98d-73ed-43fe-98d5-39205fbccf92",
"name": "First message",
"type": "n8n-nodes-base.discord",
"typeVersion": 1,
"position": [
840,
560
]
},
{
"parameters": {
"url": "get_trending_models",
"options": {}
},
"id": "84a5f299-f454-4875-936d-9d9f491e4a59",
"name": "Get model names",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.1,
"position": [
1000,
560
]
},
{
"parameters": {
"operation": "concatenateItems",
"fieldsToAggregate": {
"fieldToAggregate": [
{
"fieldToAggregate": "choices[0].text",
"renameField": true,
"outputFieldName": "summary"
}
]
},
"options": {}
},
"id": "2170b5ac-a443-4531-9997-1bc1ff8c0d70",
"name": "Item Lists",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 3,
"position": [
1860,
560
]
},
{
"parameters": {
"fieldToSplitOut": "name",
"include": "selectedOtherFields",
"fieldsToInclude": "link",
"options": {}
},
"id": "a51194c2-46eb-4230-bdb6-cb66fce3523e",
"name": "Item Lists1",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 3,
"position": [
1480,
340
]
},
{
"parameters": {
"url": "=get_model_card?model_name={{ $json.name }}",
"options": {}
},
"id": "9221adb3-b1a0-4968-8656-a7401299b9ca",
"name": "Get model description",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.1,
"position": [
1140,
380
]
},
{
"parameters": {
"options": {
"reset": false
}
},
"id": "69c30660-04ca-4477-bcaf-dcce19ece90f",
"name": "For each model",
"type": "n8n-nodes-base.splitInBatches",
"typeVersion": 3,
"position": [
1500,
540
]
},
{
"parameters": {
"method": "POST",
"url": "v1/completions",
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={\n \"prompt\": \"\\n\\n# Instructions:\\nplease provide bullet point summary. print before every bullet point a new line but as escaped character. Furthermore just provide up to 3 bullet points. each bullet point must start with *. This is the structure for your output: ## Modeltype\\n*(bulletpoints)\\n## Summary\\n*(bulletpoints)\\n\\nin the following section is the text you have to analyse:\\n{{ $json.text }}\\n\\n# Response: in the following i will summarize the model card of the model {{ $json.name }}:\\n\",\n \"stop\": [\n\"\\n##Evaluation\",\n\"\\n##Model Details\",\n\"\\n##Applications\",\n\"\\n##OutofScope Use Restrictions\",\n\"\\n##Research Applications\",\n\"\\n##license\",\n\"\\n##model sources\",\n\"\\n##User Study\",\n\"\\n##excluded uses:\",\n\"\\nLinks\",\n\"\\nUsage\",\n\"\\nInstructions for Use\"\n ]\n}\n",
"options": {
"timeout": 1000000000
}
},
"id": "e621d082-1a92-4ecc-834d-36a5705b150c",
"name": "Summarize",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.1,
"position": [
1700,
560
]
},
{
"parameters": {
"text": "=# {{ $json.name }}",
"options": {
"embeds": "=[{\n \"type\": \"rich\",\n \"title\": \"{{ $json['name'] }}\",\n \"color\": 16739674,\n \"url\": \"{{ $json['link'] }}\",\n \"description\": {{ JSON.stringify($json.summary[0]) }}}]\n "
}
},
"id": "d83d3796-b5ee-4427-a7bf-e406c774bd25",
"name": "Post summary",
"type": "n8n-nodes-base.discord",
"typeVersion": 1,
"position": [
1940,
280
]
}
],
"pinData": {},
"connections": {
"Merge": {
"main": [
[
{
"node": "For each model",
"type": "main",
"index": 0
},
{
"node": "Item Lists1",
"type": "main",
"index": 0
}
]
]
},
"Merge1": {
"main": [
[
{
"node": "Post summary",
"type": "main",
"index": 0
}
]
]
},
"Monday 8 am": {
"main": [
[
{
"node": "First message",
"type": "main",
"index": 0
}
]
]
},
"First message": {
"main": [
[
{
"node": "Get model names",
"type": "main",
"index": 0
}
]
]
},
"Get model names": {
"main": [
[
{
"node": "Get model description",
"type": "main",
"index": 0
},
{
"node": "Merge",
"type": "main",
"index": 1
}
]
]
},
"Item Lists": {
"main": [
[
{
"node": "For each model",
"type": "main",
"index": 0
}
]
]
},
"Item Lists1": {
"main": [
[
{
"node": "Merge1",
"type": "main",
"index": 0
}
]
]
},
"Get model description": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 0
}
]
]
},
"For each model": {
"main": [
[
{
"node": "Merge1",
"type": "main",
"index": 1
}
],
[
{
"node": "Summarize",
"type": "main",
"index": 0
}
]
]
},
"Summarize": {
"main": [
[
{
"node": "Item Lists",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "14dfd56e-e07a-443a-80f7-9dfb7da0f728",
"id": "DvVa32LzPpogH4Ns",
"meta": {
"instanceId": "1430b65aa2784ba212396cab7dd102f2d86c298aaa0c863f9d5e572225ad65a4"
},
"tags": []
}