PotionBio commited on
Commit
7ce27ac
·
verified ·
1 Parent(s): 661c0a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -128,7 +128,7 @@ def update(sequence, word1, word2, word3, sequence_length):
128
  st.write("Please try again later or contact support if the issue persists.")
129
 
130
  def share_on_twitter(word1, word2, word3, length, plddt):
131
- tweet_text = f"I just discoved a new protein using the seed words: #{word1}, #{word2}, #{word3} | generated by @PotionBio"
132
  tweet_url = f"https://twitter.com/intent/tweet?text={urllib.parse.quote(tweet_text)}"
133
  return tweet_url
134
 
@@ -190,11 +190,11 @@ if st.session_state.structure_info:
190
  st.subheader("Share your unique protein on X(Twitter)")
191
 
192
  st.markdown("""
193
- <div style='background-color: #e6f2ff; padding: 10px; border-radius: 5px; font-size: 0.8em;'>
194
  <ol>
195
- <li>Take a screenshot of the protein structure above.</li>
196
- <li>Click the 'Share Results' link below to open a pre-filled post with your proteins seed-words and plDDT score.</li>
197
- <li>Be sure to attach a screenshot of your protein before you post!</li>
198
  </ol>
199
  </div>
200
  """, unsafe_allow_html=True)
@@ -220,12 +220,12 @@ if st.session_state.structure_info:
220
  )
221
 
222
  st.markdown("""
223
- If you discover an interesting protein structure, you can explore it even further:
224
 
225
  1. Click the 'analyze protein' button to search the [BLAST](https://blast.ncbi.nlm.nih.gov/Blast.cgi?PROGRAM=blastp&PAGE_TYPE=BlastSearch&LINK_LOC=blasthome) protein database and see if your protein matches any known sequences. The sequence identity will show how close your sequence matches. *Note this can take several minutes
226
  2. Download your protein data and visit the [Protein Data Bank (PDB)](https://www.rcsb.org/) to match your protein structure against known protein structures.
227
  3. If you think you've discovered a unique and useful protein share it with the world on social media!
228
 
229
- **Remember, this folding is based on randomly generated sequences. Interpret the results with caution.
230
  Enjoy exploring the world of protein sequences!
231
  """)
 
128
  st.write("Please try again later or contact support if the issue persists.")
129
 
130
  def share_on_twitter(word1, word2, word3, length, plddt):
131
+ tweet_text = f"I just discovered a new protein using the seed words: {word1} + {word2} + {word3} | protein generated by @PotionBio"
132
  tweet_url = f"https://twitter.com/intent/tweet?text={urllib.parse.quote(tweet_text)}"
133
  return tweet_url
134
 
 
190
  st.subheader("Share your unique protein on X(Twitter)")
191
 
192
  st.markdown("""
193
+ <div style='background-color: #00000; padding: 10px; border-radius: 5px; font-size: 0.8em;'>
194
  <ol>
195
+ <li>Take a screenshot of your protein structure above.</li>
196
+ <li>Click the 'Share Results' link below to open a pre-filled post with your proteins seed-words.</li>
197
+ <li>Upload your protein image or sequence and post!</li>
198
  </ol>
199
  </div>
200
  """, unsafe_allow_html=True)
 
220
  )
221
 
222
  st.markdown("""
223
+ If you discover an interesting protein sequence and structure, you can explore it even further:
224
 
225
  1. Click the 'analyze protein' button to search the [BLAST](https://blast.ncbi.nlm.nih.gov/Blast.cgi?PROGRAM=blastp&PAGE_TYPE=BlastSearch&LINK_LOC=blasthome) protein database and see if your protein matches any known sequences. The sequence identity will show how close your sequence matches. *Note this can take several minutes
226
  2. Download your protein data and visit the [Protein Data Bank (PDB)](https://www.rcsb.org/) to match your protein structure against known protein structures.
227
  3. If you think you've discovered a unique and useful protein share it with the world on social media!
228
 
229
+ **Remember, this folding is based on a randomly generated sequences. Interpret the results with caution.
230
  Enjoy exploring the world of protein sequences!
231
  """)