Update app.py with transformer embeddings and prediction pipeline
Browse files
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"
|
|
|
|
|
|
|
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(
|