savakholin commited on
Commit
d1c87c7
·
1 Parent(s): c4d60f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -25,7 +25,7 @@ model = EsmModel.from_pretrained(model_name)
25
  uploaded_file = st.file_uploader("Upload JSON with AA sequences", type='json')
26
  if uploaded_file is not None:
27
  data = json.load(uploaded_file)
28
- st.write(data)
29
 
30
  def embed_upload_file(upload_dict_dania):
31
  # upload_dict_dania = {
@@ -35,7 +35,7 @@ def embed_upload_file(upload_dict_dania):
35
  # 'uid1': {'aa':[[[0.1298, ....]]], 'aan':[[[0.1298, ....]]]}
36
  # }
37
 
38
- for uid, seqs in upload_json_dania.items():
39
  output[uid] = {}
40
  for seq in seqs:
41
  output[uid][seq] = embed(seq)
 
25
  uploaded_file = st.file_uploader("Upload JSON with AA sequences", type='json')
26
  if uploaded_file is not None:
27
  data = json.load(uploaded_file)
28
+ #st.write(data)
29
 
30
  def embed_upload_file(upload_dict_dania):
31
  # upload_dict_dania = {
 
35
  # 'uid1': {'aa':[[[0.1298, ....]]], 'aan':[[[0.1298, ....]]]}
36
  # }
37
 
38
+ for uid, seqs in upload_dict_dania.items():
39
  output[uid] = {}
40
  for seq in seqs:
41
  output[uid][seq] = embed(seq)