abondrn commited on
Commit
64a6606
·
1 Parent(s): 9122e25

Added progres

Browse files
Files changed (2) hide show
  1. app.py +2 -2
  2. requirements.txt +2 -1
app.py CHANGED
@@ -41,14 +41,14 @@ def aa_embed(sequence: str):
41
  tokens = tokenizer_aa([sequence], return_tensors="pt")
42
  with torch.no_grad():
43
  torch_outs = model_aa(**tokens)
44
- return torch_outs
45
 
46
 
47
  def se_embed(sentence: str):
48
  encoded_input = tokenizer_se([sentence], return_tensors='pt')
49
  with torch.no_grad():
50
  model_output = model_se(**encoded_input)
51
- return model_output
52
 
53
 
54
  def download_data_if_required():
 
41
  tokens = tokenizer_aa([sequence], return_tensors="pt")
42
  with torch.no_grad():
43
  torch_outs = model_aa(**tokens)
44
+ return torch_outs[0]
45
 
46
 
47
  def se_embed(sentence: str):
48
  encoded_input = tokenizer_se([sentence], return_tensors='pt')
49
  with torch.no_grad():
50
  model_output = model_se(**encoded_input)
51
+ return model_output[0]
52
 
53
 
54
  def download_data_if_required():
requirements.txt CHANGED
@@ -8,4 +8,5 @@ torch-geometric==2.3.1
8
  --find-links https://data.pyg.org/whl/torch-2.0.0+cpu.html torch-scatter==2.1.1
9
  --find-links https://data.pyg.org/whl/torch-2.0.0+cpu.html torch-sparse==0.6.17
10
  --find-links https://data.pyg.org/whl/torch-2.0.0+cpu.html torch-spline-conv==1.2.2
11
- transformers==4.29.2
 
 
8
  --find-links https://data.pyg.org/whl/torch-2.0.0+cpu.html torch-scatter==2.1.1
9
  --find-links https://data.pyg.org/whl/torch-2.0.0+cpu.html torch-sparse==0.6.17
10
  --find-links https://data.pyg.org/whl/torch-2.0.0+cpu.html torch-spline-conv==1.2.2
11
+ transformers==4.29.2
12
+ progres