File size: 545 Bytes
48a5f53
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
269b640
48a5f53
 
 
 
 
b6da5d4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# GPT2 Keyword Based Lecture Generator

## Model description

GPT2 fine-tuned on the TED Talks Dataset (published under the Creative Commons BY-NC-ND license).

## Intended uses

Used to generate spoken-word lectures.

### How to use

Input text: 

          <BOS> title <|SEP|> Some keywords <|SEP|>

Keyword Format: "Main Topic"."Subtopic1","Subtopic2","Subtopic3"

Code Example:
```
prompt = <BOS> + title + \\
         <|SEP|> + keywords + <|SEP|>
         
generated = torch.tensor(tokenizer.encode(prompt)).unsqueeze(0)

model.eval();
```