Accelernate commited on
Commit
d82be3c
·
verified ·
1 Parent(s): 980c380

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -129,6 +129,15 @@ word2 = st.sidebar.text_input("Word 2")
129
  word3 = st.sidebar.text_input("Word 3")
130
  sequence_length = st.sidebar.number_input("Sequence Length", min_value=50, max_value=400, value=100, step=10)
131
 
 
 
 
 
 
 
 
 
 
132
  if st.sidebar.button('Generate and Predict'):
133
  if word1 and word2 and word3:
134
  sequence = generate_sequence_from_words([word1, word2, word3], sequence_length)
@@ -165,7 +174,7 @@ if st.session_state.structure_info:
165
  """, unsafe_allow_html=True)
166
 
167
  tweet_url = share_on_twitter(info["word1"], info["word2"], info["word3"], info["sequence_length"], plddt_score)
168
- st.markdown(f"[Share Results]({https://huggingface.co/spaces/WANDSAI/GenPro2})")
169
 
170
  st.markdown("""
171
  ## What to do next:
 
129
  word3 = st.sidebar.text_input("Word 3")
130
  sequence_length = st.sidebar.number_input("Sequence Length", min_value=50, max_value=400, value=100, step=10)
131
 
132
+ # Information for users
133
+ st.info("""
134
+ Protein Length Guide:
135
+ - 50-100 amino acids: Small proteins/peptides
136
+ - 100-300 amino acids: Average protein domains
137
+ - 300-500 amino acids: Larger single-domain proteins
138
+
139
+ """)
140
+
141
  if st.sidebar.button('Generate and Predict'):
142
  if word1 and word2 and word3:
143
  sequence = generate_sequence_from_words([word1, word2, word3], sequence_length)
 
174
  """, unsafe_allow_html=True)
175
 
176
  tweet_url = share_on_twitter(info["word1"], info["word2"], info["word3"], info["sequence_length"], plddt_score)
177
+ st.markdown(f"[Share Results]({tweet_url})")
178
 
179
  st.markdown("""
180
  ## What to do next: