DHRUV SHEKHAWAT
commited on
Commit
·
2040a2b
1
Parent(s):
8a998a2
Update app.py
Browse files
app.py
CHANGED
@@ -58,8 +58,7 @@ if load_checkpoint:
|
|
58 |
|
59 |
|
60 |
question = text2
|
61 |
-
|
62 |
-
break
|
63 |
max_len = 128
|
64 |
enc_qus = [word_map.get(word, word_map['<unk>']) for word in question.split()]
|
65 |
question = torch.LongTensor(enc_qus).to(device).unsqueeze(0)
|
|
|
58 |
|
59 |
|
60 |
question = text2
|
61 |
+
|
|
|
62 |
max_len = 128
|
63 |
enc_qus = [word_map.get(word, word_map['<unk>']) for word in question.split()]
|
64 |
question = torch.LongTensor(enc_qus).to(device).unsqueeze(0)
|