AhmedSSabir
commited on
Commit
•
b196c77
1
Parent(s):
6770b3a
Update app.py
Browse files
app.py
CHANGED
@@ -6,6 +6,10 @@ import re
|
|
6 |
import os
|
7 |
import gradio as gr
|
8 |
import requests
|
|
|
|
|
|
|
|
|
9 |
|
10 |
# just for the sake of this demo, we use cloze prob to initialize the hypothesis
|
11 |
|
|
|
6 |
import os
|
7 |
import gradio as gr
|
8 |
import requests
|
9 |
+
import torch
|
10 |
+
from transformers import GPT2Tokenizer, GPT2LMHeadModel
|
11 |
+
from torch.nn.functional import softmax
|
12 |
+
import numpy as np
|
13 |
|
14 |
# just for the sake of this demo, we use cloze prob to initialize the hypothesis
|
15 |
|