nambiar4 commited on
Commit
f050150
·
1 Parent(s): 0ae121b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -8,6 +8,9 @@ tokenizer = AutoTokenizer.from_pretrained("./checkpoint-final/")
8
  model = AutoModelForTokenClassification.from_pretrained("./checkpoint-final/")
9
  model = model.eval()
10
 
 
 
 
11
  def get_out(sent):
12
  encoded = tokenizer.encode_plus(sent, return_tensors="pt")
13
  with torch.no_grad():
@@ -23,4 +26,5 @@ gr.Interface(
23
  gr.components.Textbox(label="Input Amino Acid Sequence", placeholder = " Amino acid sequence here ...")
24
  ],
25
  ["text"],
 
26
  ).launch()
 
8
  model = AutoModelForTokenClassification.from_pretrained("./checkpoint-final/")
9
  model = model.eval()
10
 
11
+ examples = [
12
+ ["GSHMSDNEDNFDGDDFDDVEEDEGLDDLENAEEEGQENVEILPSGERPQANQKRITTPYMTKYERARVLGTRALQIAMCAPVMVELEGETDPLLIAMKELKARKIPIIIRRYLPDGSYEDWGVDELIITD"]]
13
+
14
  def get_out(sent):
15
  encoded = tokenizer.encode_plus(sent, return_tensors="pt")
16
  with torch.no_grad():
 
26
  gr.components.Textbox(label="Input Amino Acid Sequence", placeholder = " Amino acid sequence here ...")
27
  ],
28
  ["text"],
29
+ examples=examples,
30
  ).launch()