awacke1 commited on
Commit
003bd87
·
1 Parent(s): 546f368

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -15
app.py CHANGED
@@ -5,21 +5,18 @@ import requests
5
  API_URL = "https://api-inference.huggingface.co/models/EleutherAI/gpt-j-6B"
6
  headers = {"Authorization": "Bearer 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"}
7
  prompt = """
8
- word: risk
9
- poem using word: And then the day came,
10
- when the risk
11
- to remain tight
12
- in a bud
13
- was more painful
14
- than the risk
15
- it took
16
- to blossom.
17
- word: bird
18
- poem using word: She sights a bird, she chuckles
19
- She flattens, then she crawls
20
- She runs without the look of feet
21
- Her eyes increase to Balls.
22
- word: """
23
 
24
  examples = [["river"], ["night"], ["trees"],["table"],["laughs"]]
25
 
 
5
  API_URL = "https://api-inference.huggingface.co/models/EleutherAI/gpt-j-6B"
6
  headers = {"Authorization": "Bearer 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"}
7
  prompt = """
8
+ Tweet: I hate it when my phone battery dies.
9
+ Sentiment: Negative
10
+ ###
11
+ Tweet: My day has been 👍
12
+ Sentiment: Positive
13
+ ###
14
+ Tweet: This is the link to the article
15
+ Sentiment: Neutral
16
+ ###
17
+ Tweet: This new music video was incredibile
18
+ Sentiment:
19
+ """
 
 
 
20
 
21
  examples = [["river"], ["night"], ["trees"],["table"],["laughs"]]
22