Skip to content

Commit 56832aa

Browse files
authored
Add files via upload
1 parent 4d58c11 commit 56832aa

File tree

1 file changed

+330
-0
lines changed

1 file changed

+330
-0
lines changed

HuggingFace.json

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

0 commit comments

Comments
 (0)