azarazua commited on
Commit
9df31f4
1 Parent(s): df7a491

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,5 +1,6 @@
1
  import streamlit as st
2
  import numpy as np
 
3
  import random
4
 
5
  # Streamlit app layout
@@ -43,8 +44,7 @@ if "set1" in globals():
43
  st.write("Scatter plot of Set 1 against Set 2")
44
  st.write("You can visualize the relationship between the two sets")
45
  st.write("Note: This plot requires 'matplotlib' which may not be supported in all Streamlit deployment environments.")
46
- st.write("If the plot is not visible, please run the code locally.")
47
  st.pyplot(plt.scatter(set1, set2))
48
 
49
  else:
50
- st.write(":red[Please specify the number of data points]")
 
1
  import streamlit as st
2
  import numpy as np
3
+ import matplotlib.pyplot as plt # Added this import statement
4
  import random
5
 
6
  # Streamlit app layout
 
44
  st.write("Scatter plot of Set 1 against Set 2")
45
  st.write("You can visualize the relationship between the two sets")
46
  st.write("Note: This plot requires 'matplotlib' which may not be supported in all Streamlit deployment environments.")
 
47
  st.pyplot(plt.scatter(set1, set2))
48
 
49
  else:
50
+ st.write(":red[Please specify the number of data points]")