Update app.py
Browse files
app.py
CHANGED
|
@@ -15,8 +15,8 @@ import urllib.parse
|
|
| 15 |
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
|
| 16 |
|
| 17 |
st.set_page_config(layout='wide')
|
| 18 |
-
st.sidebar.title('🔮 GenPro2
|
| 19 |
-
st.sidebar.write('GenPro2
|
| 20 |
|
| 21 |
def generate_sequence_from_words(words, length):
|
| 22 |
seed = ' '.join(words).encode('utf-8')
|
|
@@ -199,8 +199,27 @@ if st.session_state.structure_info:
|
|
| 199 |
</div>
|
| 200 |
""", unsafe_allow_html=True)
|
| 201 |
|
| 202 |
-
|
| 203 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 204 |
|
| 205 |
st.markdown("""
|
| 206 |
## What to do next:
|
|
|
|
| 15 |
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
|
| 16 |
|
| 17 |
st.set_page_config(layout='wide')
|
| 18 |
+
st.sidebar.title('🔮 GenPro2')
|
| 19 |
+
st.sidebar.write('GenPro2 is an end-to-end protein sequence generator, structure predictor, and analysis that uses [ESMFold](https://esmatlas.com/explore?at=1%2C1%2C21.999999344348925) and the ESM-2 language model | beta v2.51')
|
| 20 |
|
| 21 |
def generate_sequence_from_words(words, length):
|
| 22 |
seed = ' '.join(words).encode('utf-8')
|
|
|
|
| 199 |
</div>
|
| 200 |
""", unsafe_allow_html=True)
|
| 201 |
|
| 202 |
+
tweet_url = share_on_twitter(info["word1"], info["word2"], info["word3"], info["sequence_length"], plddt_score)
|
| 203 |
+
|
| 204 |
+
st.markdown(
|
| 205 |
+
f"""
|
| 206 |
+
<a href="{tweet_url}" target="_blank" style="
|
| 207 |
+
display: inline-flex;
|
| 208 |
+
align-items: center;
|
| 209 |
+
background-color: white;
|
| 210 |
+
color: black;
|
| 211 |
+
border: 1px solid black;
|
| 212 |
+
padding: 0.5em 1em;
|
| 213 |
+
text-decoration: none;
|
| 214 |
+
border-radius: 8px;
|
| 215 |
+
font-weight: bold;
|
| 216 |
+
">
|
| 217 |
+
<img src="https://upload.wikimedia.org/wikipedia/commons/5/53/X_logo_2023.svg" alt="X" width="16" height="16" style="margin-right: 8px;">
|
| 218 |
+
Share: X
|
| 219 |
+
</a>
|
| 220 |
+
""",
|
| 221 |
+
unsafe_allow_html=True
|
| 222 |
+
)
|
| 223 |
|
| 224 |
st.markdown("""
|
| 225 |
## What to do next:
|