Skip to content

Commit

Permalink
1st commit
Browse files Browse the repository at this point in the history
  • Loading branch information
nhaouari committed Nov 29, 2022
1 parent a6130d9 commit a0044b1
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 21 deletions.
4 changes: 3 additions & 1 deletion data.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"prompts":[
"getExample"
"classify-bart-large-mnli",
"completeText",
"summarizeBART"
]
}
10 changes: 5 additions & 5 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"packageId": "default",
"name": "Default Prompts Package",
"version": "0.0.6",
"name": "Huggingface Prompts Package",
"version": "0.0.1",
"minTextGeneratorVersion": "0.1.0",
"description": "This is the main package that comes with Text Generator plugin in Obsidian",
"description": "Huggingface Prompts comes with Text Generator plugin in Obsidian",
"author": "Noureddine Haouari",
"tags" : "writing, brainstorming",
"tags" : "writing, brainstorming, huggingface",
"authorUrl": "https://www.buymeacoffee.com/haouarine",
"repo":"text-gen/gpt-3-prompt-templates"
"repo":"text-gen/huggingface"
}
23 changes: 23 additions & 0 deletions prompts/classify.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
PromptInfo:
promptId: classify-bart-large-mnli
name: 🪄 classify using bart-large-mnli
description: You need to specify candidate_labels
author: Noureddine
tags: huggingface, text, classification
version: 0.0.1
config:
append:
bodyParams: false
reqParams: true
context: 'inputs'
output: "`\n==${requestResults.labels[0]}==`"
bodyParams:
parameters:
candidate_labels: ["refund", "legal", "faq"]
reqParams:
url: "https://api-inference.huggingface.co/models/facebook/bart-large-mnli"
headers:
Authorization: "Bearer You_API_KEY_HERE"
---
{{selection}}
22 changes: 22 additions & 0 deletions prompts/completeBloom.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
PromptInfo:
promptId: completeText
name: 🪄 Complete Text using Bloom Model
description: select considered context and run the command
author: Noureddine
tags: huggingface, text, bloom
version: 0.0.1
config:
append:
bodyParams: false
reqParams: true
context: 'inputs'
output: 'requestResults[0]?.generated_text'
bodyParams:
reqParams:
url: "https://api-inference.huggingface.co/models/bigscience/bloom"
headers:
Authorization: "Bearer You_API_KEY_HERE"
---
{{selection}}

15 changes: 0 additions & 15 deletions prompts/getExample.md

This file was deleted.

29 changes: 29 additions & 0 deletions prompts/summarizeBART.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
PromptInfo:
promptId: summarizeBART
name: 🪄 Summarize Text using BRAT Facebook
description: select considered context and run the command
author: Noureddine
tags: huggingface, text, summarization
version: 0.0.1
config:
append:
bodyParams: false
reqParams: true
context: 'inputs'
output: 'requestResults[0]?.generated_text'
bodyParams:
reqParams:
url: "https://api-inference.huggingface.co/models/facebook/bart-large-cnn"
headers:
Authorization: "Bearer You_API_KEY_HERE"
---
{{selection}}








0 comments on commit a0044b1

Please sign in to comment.