PiKaHa commited on
Commit
6c96c76
1 Parent(s): 9a02516

Update app.py with transformer embeddings and prediction pipeline

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -150,7 +150,10 @@ print("Creating Gradio interface...")
150
  interface = gr.Interface(
151
  fn=predict,
152
  inputs=[
153
- gr.Textbox(label="Input Protein Sequence"), # Input: Text box for sequence
 
 
 
154
  gr.Radio(choices=["Plant-Specific", "General"], label="Prediction Type", value="Plant-Specific"), # Dropdown for selection
155
  ],
156
  outputs=gr.Dataframe(
 
150
  interface = gr.Interface(
151
  fn=predict,
152
  inputs=[
153
+ gr.Textbox(label="Input Protein Sequence",
154
+ value="MSPQTETKASVGFKAGVKEYKLTYYTPEYETKDTDILAAFRVTPQPGVPPEEAGAAVAAESSTGTWTTVWTDGLTSLDRYKGRCYHIEPVPGEETQFIAYVAYPLDLFEEGSVTNMFTSIVGNVFGFKALAALRLEDLRIPPAYTKTFQGPPHGIQVERDKLNKYGRPLLGCTIKPKLGLSAKNYGRAVYECLRGGLDFTKDDENVNSQPFMRWRDRFLFCAEAIYKSQAETGEIKGHYLNATAGTCEEMIKRAVFARELGVPIVMHDYLTGGFTANTSLSHYCRDNGLLLHIHRAMHAVIDRQKNHGMHFRVLAKALRLSGGDHIHAGTVVGKLEGDRESTLGFVDLLRDDYVEKDRSRGIFFTQDWVSLPGVLPVASGGIHVWHMPALTEIFGDDSVLQFGGGTLGHPWGNAPGAVANRVALEACVQARNEGRDLAVEGNEIIREACKWSPELAAACEVWKEITFNFPTIDKLDGQE",
155
+ lines=10,
156
+ ), # Input: Text box for sequence
157
  gr.Radio(choices=["Plant-Specific", "General"], label="Prediction Type", value="Plant-Specific"), # Dropdown for selection
158
  ],
159
  outputs=gr.Dataframe(