PotionBio commited on
Commit
415b6c3
·
verified ·
1 Parent(s): a41f448

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
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 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.12')
20
 
21
  def generate_sequence_from_words(words, length):
22
  seed = ' '.join(words).encode('utf-8')
@@ -181,7 +181,7 @@ if st.sidebar.button('Generate and Predict'):
181
  # Display structure information if available
182
  if st.session_state.structure_info:
183
  info = st.session_state.structure_info
184
- st.subheader(f'Predicted protein structure using seed: {info["word1"]}, {info["word2"]}, and {info["word3"]} + sequence length {info["sequence_length"]}')
185
  render_mol(info['pdb_string'])
186
 
187
  st.subheader('plDDT Confidence Score')
@@ -192,16 +192,16 @@ if st.session_state.structure_info:
192
  st.subheader("Share your unique protein on X(Twitter)")
193
 
194
  st.markdown("""
195
- <div style='background-color: #e6f2ff; padding: 10px; border-radius: 5px; font-size: 0.8em;'>
196
  <ol>
197
  <li>Take a screenshot of the protein structure above.</li>
198
- <li>Click the 'Share Results' link below to open a pre-filled post with your proteins seed-words and plDDT score.</li>
199
- <li>Be sure to attach a screenshot of your protein before you post!</li>
200
  </ol>
201
  </div>
202
  """, unsafe_allow_html=True)
203
 
204
- tweet_url = share_on_twitter(info["word1"], info["word2"], info["word3"], info["sequence_length"], plddt_score)
205
  st.markdown(f"[Share Results]({tweet_url})")
206
 
207
  st.markdown("""
 
15
  urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
16
 
17
  st.set_page_config(layout='wide')
18
+ st.sidebar.title('🔮 GenPro2.5')
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 | [Potion.Bio](https://www.potion.bio)beta v2.51')
20
 
21
  def generate_sequence_from_words(words, length):
22
  seed = ' '.join(words).encode('utf-8')
 
181
  # Display structure information if available
182
  if st.session_state.structure_info:
183
  info = st.session_state.structure_info
184
+ st.subheader(f'I just discovered a new protein using seed words: {info["word1"]}, {info["word2"]}, and {info["word3"]} generated by @PotionBio')
185
  render_mol(info['pdb_string'])
186
 
187
  st.subheader('plDDT Confidence Score')
 
192
  st.subheader("Share your unique protein on X(Twitter)")
193
 
194
  st.markdown("""
195
+ <div style='background-color: #000000; padding: 10px; border-radius: 5px; font-size: 0.8em;'>
196
  <ol>
197
  <li>Take a screenshot of the protein structure above.</li>
198
+ <li>Click the 'Share Results' link below to open a pre-filled post with your proteins seed-words.</li>
199
+ <li>Upload your protein and post!</li>
200
  </ol>
201
  </div>
202
  """, unsafe_allow_html=True)
203
 
204
+ tweet_url = share_on_twitter(info["word1"], info["word2"], info["word3"])
205
  st.markdown(f"[Share Results]({tweet_url})")
206
 
207
  st.markdown("""