emiliosheinz commited on
Commit
06e6e99
1 Parent(s): 30f532a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -17,6 +17,9 @@ frase2 = st.text_input("Insira a segunda frase:")
17
  if frase1 and frase2:
18
  # tokenizar as frases e obter os embeddings
19
  input_ids = tokenizer.encode_plus(frase1, frase2, padding='max_length', truncation=True, return_tensors='pt')
 
 
 
20
  with torch.no_grad():
21
  embeddings = model(input_ids['input_ids'], attention_mask=input_ids['attention_mask'])[0]
22
 
 
17
  if frase1 and frase2:
18
  # tokenizar as frases e obter os embeddings
19
  input_ids = tokenizer.encode_plus(frase1, frase2, padding='max_length', truncation=True, return_tensors='pt')
20
+
21
+ print(input_ids.tolist())
22
+
23
  with torch.no_grad():
24
  embeddings = model(input_ids['input_ids'], attention_mask=input_ids['attention_mask'])[0]
25