yashm commited on
Commit
79db332
·
verified ·
1 Parent(s): e7f5415

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -68,7 +68,9 @@ def plot_pcr_product(sequence, primers, num_pairs=5):
68
  plt.title('PCR Products Visualization')
69
  plt.xlabel('Nucleotide position')
70
  plt.grid(True)
71
- plt.show()
 
 
72
 
73
 
74
  if uploaded_file is not None:
 
68
  plt.title('PCR Products Visualization')
69
  plt.xlabel('Nucleotide position')
70
  plt.grid(True)
71
+
72
+ # Instead of plt.show(), use st.pyplot() for Streamlit
73
+ st.pyplot(plt)
74
 
75
 
76
  if uploaded_file is not None: