Skip to content

Commit

Permalink
chore: update sentiments example (#331)
Browse files Browse the repository at this point in the history
Signed-off-by: Grant Linville <[email protected]>
  • Loading branch information
g-linville authored May 9, 2024
1 parent ae4f020 commit 81e5682
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 58 deletions.
15 changes: 4 additions & 11 deletions examples/sentiments/tweet.gpt → examples/sentiments.gpt
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
tools: sys.write, get-tweet-text, sentiments
tools: github.com/gptscript-ai/browser, sentiments
description: get the sentiments expressed in a tweet
args: url: URL of the tweet to analyze

Perform the actions in the following order:

Get the text of the tweet referenced by "${url} and save it in the file content.txt
Next analyze the sentiments expressed in this file

---
name: get-tweet-text
description: get text content of a tweet
args: url: url towards a tweet

#!python3 main.py "$url"
Get the text of the tweet referenced by $url.
Then, analyze the sentiments expressed in this tweet.

---
name: sentiments
Expand All @@ -21,4 +14,4 @@ args: content: any string

You are a program designed to assess the sentiments expressed by a writer in a text.

Do not give too many details, just the overall sentiments that is expressed in "${content}"
Do not give too many details, just the overall sentiments that is expressed in "${content}"
22 changes: 0 additions & 22 deletions examples/sentiments/README.md

This file was deleted.

24 changes: 0 additions & 24 deletions examples/sentiments/main.py

This file was deleted.

1 change: 0 additions & 1 deletion examples/sentiments/requirements.txt

This file was deleted.

0 comments on commit 81e5682

Please sign in to comment.