File size: 645 Bytes
c8e874d
49c5855
 
c8e874d
49c5855
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import streamlit as st
from utils import validate_sequence, predict
from model import model

def main():
    st.title("AminoAnalytica - ML Experience")
    
    # User input
    sequence = st.text_input("Enter your amino acid sequence:")

    if st.button("Analyze Sequence"):
        if validate_sequence(sequence):
            prediction = predict(model, sequence)
            st.write("### Results")
            st.table({"Property": ["Solubility"], "Model Output": [prediction]})
        else:
            st.error("Invalid sequence. Please enter a valid amino acid sequence of up to 200 characters.")

if __name__ == "__main__":
    main()