jonathang commited on
Commit
994d177
1 Parent(s): 2b313b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -109,7 +109,7 @@ def greet(Amino_Acid_Sequence):
109
  fam_asc = prot_mappings['id2fam_asc'][str(idx)]
110
  fam_id = prot_mappings['fam_asc2fam_id'][fam_asc]
111
  gc.collect()
112
- return f"Input is {Amino_Acid_Sequence}.\nProcessed input is:\n{processed_seq}\n\nModel makes prediction:\n{raw_prediction}\nWhich gives index {idx}.\nWhich maps to family ascension {fam_asc} and ID {fam_id}"
113
 
114
  iface = gr.Interface(fn=greet, inputs="text", outputs="text")
115
  iface.launch()
 
109
  fam_asc = prot_mappings['id2fam_asc'][str(idx)]
110
  fam_id = prot_mappings['fam_asc2fam_id'][fam_asc]
111
  gc.collect()
112
+ return f"Input is {Amino_Acid_Sequence}.\nProcessed input is:\n{processed_seq}\n\nModel makes prediction which maps to:\nFamily Accession={fam_asc} and ID={fam_id}\n\nRaw Prediction:\n{raw_prediction}\n"
113
 
114
  iface = gr.Interface(fn=greet, inputs="text", outputs="text")
115
  iface.launch()