sgonzalezsilot
commited on
Commit
•
a796eab
1
Parent(s):
de25c83
Update app.py
Browse files
app.py
CHANGED
@@ -39,8 +39,9 @@ def bert_encode(tokenizer,data,maximum_length) :
|
|
39 |
|
40 |
|
41 |
def get_news(input_text):
|
42 |
-
|
43 |
-
|
|
|
44 |
return m([train_input_ids,train_attention_masks])
|
45 |
|
46 |
iface = gr.Interface(fn = get_news,
|
|
|
39 |
|
40 |
|
41 |
def get_news(input_text):
|
42 |
+
sentence_length = 110
|
43 |
+
train_input_ids,train_attention_masks = bert_encode(tokenizer,input_text,sentence_length)
|
44 |
+
|
45 |
return m([train_input_ids,train_attention_masks])
|
46 |
|
47 |
iface = gr.Interface(fn = get_news,
|