Skip to content

Commit 81e5682

Browse files
authored
chore: update sentiments example (#331)
Signed-off-by: Grant Linville <[email protected]>
1 parent ae4f020 commit 81e5682

File tree

4 files changed

+4
-58
lines changed

4 files changed

+4
-58
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
1-
tools: sys.write, get-tweet-text, sentiments
1+
tools: github.com/gptscript-ai/browser, sentiments
22
description: get the sentiments expressed in a tweet
33
args: url: URL of the tweet to analyze
44

55
Perform the actions in the following order:
66

7-
Get the text of the tweet referenced by "${url} and save it in the file content.txt
8-
Next analyze the sentiments expressed in this file
9-
10-
---
11-
name: get-tweet-text
12-
description: get text content of a tweet
13-
args: url: url towards a tweet
14-
15-
#!python3 main.py "$url"
7+
Get the text of the tweet referenced by $url.
8+
Then, analyze the sentiments expressed in this tweet.
169

1710
---
1811
name: sentiments
@@ -21,4 +14,4 @@ args: content: any string
2114

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

24-
Do not give too many details, just the overall sentiments that is expressed in "${content}"
17+
Do not give too many details, just the overall sentiments that is expressed in "${content}"

examples/sentiments/README.md

-22
This file was deleted.

examples/sentiments/main.py

-24
This file was deleted.

examples/sentiments/requirements.txt

-1
This file was deleted.

0 commit comments

Comments
 (0)