Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
|
|
16 |
|
17 |
st.set_page_config(layout='wide')
|
18 |
st.sidebar.title('🔮 GenPro2 Protein Generator, Structure Predictor, and Analysis Tool')
|
19 |
-
st.sidebar.write('GenPro2 is an end-to-end sequence
|
20 |
|
21 |
def generate_sequence_from_words(words, length):
|
22 |
seed = ' '.join(words).encode('utf-8')
|
@@ -109,7 +109,7 @@ def update(sequence, word1, word2, word3, sequence_length):
|
|
109 |
st.write("Please try again later or contact support if the issue persists.")
|
110 |
|
111 |
def share_on_twitter(word1, word2, word3, length, plddt):
|
112 |
-
tweet_text = f"I just generated a new protein using #GenPro2 from the seed-words '{word1}', '{word2}', and '{word3}' + sequence length {length}! It
|
113 |
tweet_url = f"https://twitter.com/intent/tweet?text={urllib.parse.quote(tweet_text)}"
|
114 |
return tweet_url
|
115 |
|
@@ -121,7 +121,7 @@ if 'show_analyze_button' not in st.session_state:
|
|
121 |
if 'structure_info' not in st.session_state:
|
122 |
st.session_state.structure_info = None
|
123 |
|
124 |
-
st.title("Word-Seeded Protein Sequence Generator and
|
125 |
|
126 |
st.sidebar.subheader("Generate Sequence from Words")
|
127 |
word1 = st.sidebar.text_input("Word 1")
|
|
|
16 |
|
17 |
st.set_page_config(layout='wide')
|
18 |
st.sidebar.title('🔮 GenPro2 Protein Generator, Structure Predictor, and Analysis Tool')
|
19 |
+
st.sidebar.write('GenPro2 is an end-to-end protein sequence generator, structure predictor, and analysis tool based [*ESMFold*](https://esmatlas.com/about) and the ESM-2 language model.')
|
20 |
|
21 |
def generate_sequence_from_words(words, length):
|
22 |
seed = ' '.join(words).encode('utf-8')
|
|
|
109 |
st.write("Please try again later or contact support if the issue persists.")
|
110 |
|
111 |
def share_on_twitter(word1, word2, word3, length, plddt):
|
112 |
+
tweet_text = f"I just generated a new protein using #GenPro2 from the seed-words '{word1}', '{word2}', and '{word3}' + sequence length {length}! It has a predicted protein score of: {plddt}%."
|
113 |
tweet_url = f"https://twitter.com/intent/tweet?text={urllib.parse.quote(tweet_text)}"
|
114 |
return tweet_url
|
115 |
|
|
|
121 |
if 'structure_info' not in st.session_state:
|
122 |
st.session_state.structure_info = None
|
123 |
|
124 |
+
st.title("Word-Seeded Protein Sequence Generator, Structure Predictor, and Analysis Tool")
|
125 |
|
126 |
st.sidebar.subheader("Generate Sequence from Words")
|
127 |
word1 = st.sidebar.text_input("Word 1")
|