TianlaiChen commited on
Commit
303ad99
1 Parent(s): 3cfeb78
Files changed (2) hide show
  1. app.py +2 -2
  2. flagged/log.csv +3 -0
app.py CHANGED
@@ -39,9 +39,9 @@ interface = gr.Interface(
39
  fn=generate_peptide,
40
  inputs=[
41
  gr.Textbox(label="Protein Sequence", info = "Enter protein sequence here", type="text"),
42
- gr.Dropdown(choices=[str(i) for i in range(2, 51)], label="Peptide Length", default="15",
43
  info='Default value is 15'),
44
- gr.Dropdown(choices=[str(i) for i in range(1, 11)], label="Top K Value", default="3",
45
  info='Default value is 3')
46
  ],
47
  outputs="textbox",
 
39
  fn=generate_peptide,
40
  inputs=[
41
  gr.Textbox(label="Protein Sequence", info = "Enter protein sequence here", type="text"),
42
+ gr.Slider(3, 50, value=15, label="Peptide Length",
43
  info='Default value is 15'),
44
+ gr.Slider(1, 10, value=3, label="Top K Value", default="3",
45
  info='Default value is 3')
46
  ],
47
  outputs="textbox",
flagged/log.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ Protein Sequence,Peptide Length,Top K Value,output,flag,username,timestamp
2
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA,[],[],,,,2023-10-06 17:17:26.010229
3
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA,[],[],,,,2023-10-06 17:17:28.565382