-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
82 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
{ | ||
"prompts":[ | ||
"getExample" | ||
"classify-bart-large-mnli", | ||
"completeText", | ||
"summarizeBART" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|