osanseviero commited on
Commit
3ea8656
1 Parent(s): ecbba09

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -3,7 +3,7 @@ import py3Dmol
3
  import streamlit as st
4
  import requests
5
 
6
- sequence = st.text_input(label="Protein Sequence", placeholder="MGSSHHHHHHSSGLVPRGSHMRGPNPTAASLEASAGPFTVRSFTVSRPSGYGAGTVYYPTNAGGTVGAIAIVPGYTARQSSIKWWGPRLASHGFVVITIDTNSTLDQPSSRSSQQMAALRQVASLNGTSSSPIYGKVDTARMGVMGWSMGGGGSLISAANNPSLKAAAPQAPWDSSTNFSSVTVPTLIFACENDSIAPVNSSALPIYDSMSRNAKQFLEINGGSHSCANSGNSNQALIGKKGVAWMKRFMDNDTRYSTFACENPNSTRVSDFRTANCSLEDPAANKARKEAELAAATAEQ")
7
 
8
  headers = {
9
  'Content-Type': 'application/x-www-form-urlencoded',
@@ -21,4 +21,6 @@ with open(pdb_filename, "w") as out:
21
  xyzview = py3Dmol.view(width=400, height=300)
22
  xyzview.addModelsAsFrames(pdb_filename)
23
  xyzview.setStyle({'cartoon':{'color':'spectrum'}})
24
- showmol(xyzview, height = 500,width=800)
 
 
 
3
  import streamlit as st
4
  import requests
5
 
6
+ sequence = st.text_input(label="Protein Sequence", value="MGSSHHHHHHSSGLVPRGSHMRGPNPTAASLEASAGPFTVRSFTVSRPSGYGAGTVYYPTNAGGTVGAIAIVPGYTARQSSIKWWGPRLASHGFVVITIDTNSTLDQPSSRSSQQMAALRQVASLNGTSSSPIYGKVDTARMGVMGWSMGGGGSLISAANNPSLKAAAPQAPWDSSTNFSSVTVPTLIFACENDSIAPVNSSALPIYDSMSRNAKQFLEINGGSHSCANSGNSNQALIGKKGVAWMKRFMDNDTRYSTFACENPNSTRVSDFRTANCSLEDPAANKARKEAELAAATAEQ")
7
 
8
  headers = {
9
  'Content-Type': 'application/x-www-form-urlencoded',
 
21
  xyzview = py3Dmol.view(width=400, height=300)
22
  xyzview.addModelsAsFrames(pdb_filename)
23
  xyzview.setStyle({'cartoon':{'color':'spectrum'}})
24
+ print("Set style")
25
+ showmol(xyzview, height = 500,width=800)
26
+ print("Displayed")