Oliver12315 commited on
Commit
6e8d6f6
1 Parent(s): 77b7910

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -22
app.py CHANGED
@@ -6,28 +6,28 @@ import os
6
  from datetime import datetime
7
 
8
 
9
- examples = []
10
- if os.path.exists("assets/examples.txt"):
11
- with open("assets/examples.txt", "r", encoding="utf8") as file:
12
- for sentence in file:
13
- sentence = sentence.strip()
14
- examples.append(sentence)
15
- else:
16
- examples = [
17
- "Ends tonight! Shop select certifiably comfortable shoes!",
18
- "Just Do it!",
19
- "Don't miss our products!",
20
- "What are some of your favorite jokes? Let us know!",
21
- "Is anyone being creative with their snow day?",
22
- "Did you see our latest movie?",
23
- "Hey beautiful people! What would you like to see us doing more (or less) of!",
24
- "In fact, we discovered that Woollip works better than what we imagined.",
25
- "It is made of Titanium Grade 5, a material famous for being very strong yet very light.",
26
- "Each game already comes with six characters.",
27
- "We thank you personally for the trust you are putting in us and our company.",
28
- "I wear it everyday and am very happy with it!",
29
- "We are so grateful for our everyday heroes who never cease to amaze us!"
30
- ]
31
 
32
  device = torch.device('cpu')
33
  tokenizer = BertTokenizer.from_pretrained("Oliver12315/Brand_Tone_of_Voice")
 
6
  from datetime import datetime
7
 
8
 
9
+ # examples = []
10
+ # if os.path.exists("assets/examples.txt"):
11
+ # with open("assets/examples.txt", "r", encoding="utf8") as file:
12
+ # for sentence in file:
13
+ # sentence = sentence.strip()
14
+ # examples.append(sentence)
15
+ # else:
16
+ examples = [
17
+ "Ends tonight! Shop select certifiably comfortable shoes!",
18
+ "Just Do it!",
19
+ "Don't miss our products!",
20
+ "What are some of your favorite jokes? Let us know!",
21
+ "Is anyone being creative with their snow day?",
22
+ "Did you see our latest movie?",
23
+ "Hey beautiful people! What would you like to see us doing more (or less) of!",
24
+ "In fact, we discovered that Woollip works better than what we imagined.",
25
+ "It is made of Titanium Grade 5, a material famous for being very strong yet very light.",
26
+ "Each game already comes with six characters.",
27
+ "We thank you personally for the trust you are putting in us and our company.",
28
+ "I wear it everyday and am very happy with it!",
29
+ "We are so grateful for our everyday heroes who never cease to amaze us!"
30
+ ]
31
 
32
  device = torch.device('cpu')
33
  tokenizer = BertTokenizer.from_pretrained("Oliver12315/Brand_Tone_of_Voice")