Spaces:
Build error
Build error
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
| 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:
|