Spaces:
Sleeping
Sleeping
Update pages/Random_Variable.py
Browse files- pages/Random_Variable.py +3 -1
pages/Random_Variable.py
CHANGED
|
@@ -75,8 +75,9 @@ st.markdown("""
|
|
| 75 |
st.title("Random Variable")
|
| 76 |
st.markdown("""Random Variable is a function to which the input is sample space and the output should be mapped with real values by useing logic""",unsafe_allow_html=True)
|
| 77 |
st.title("Kethura Mood's")
|
| 78 |
-
Trail_7 = st.number_input("Trial:", min_value=1, max_value=100, value=50,key=Trail_7)
|
| 79 |
if st.button("Kethura's mood"):
|
|
|
|
| 80 |
list1=[]
|
| 81 |
for i in range(1,Trail_7+1):
|
| 82 |
selected_moods = np.random.choice(['Angry', 'Sad', 'Very Happy', 'Depression', 'Excited'])
|
|
@@ -87,5 +88,6 @@ if st.button("Kethura's mood"):
|
|
| 87 |
for i in unique_moods:
|
| 88 |
count=count+1
|
| 89 |
mood_mapping[i] = count
|
|
|
|
| 90 |
st.write(mood_mapping)
|
| 91 |
|
|
|
|
| 75 |
st.title("Random Variable")
|
| 76 |
st.markdown("""Random Variable is a function to which the input is sample space and the output should be mapped with real values by useing logic""",unsafe_allow_html=True)
|
| 77 |
st.title("Kethura Mood's")
|
| 78 |
+
Trail_7 = st.number_input("Trial:", min_value=1, max_value=100, value=50,key="Trail_7")
|
| 79 |
if st.button("Kethura's mood"):
|
| 80 |
+
st.write(f"No_of_trails{Trail_7}")
|
| 81 |
list1=[]
|
| 82 |
for i in range(1,Trail_7+1):
|
| 83 |
selected_moods = np.random.choice(['Angry', 'Sad', 'Very Happy', 'Depression', 'Excited'])
|
|
|
|
| 88 |
for i in unique_moods:
|
| 89 |
count=count+1
|
| 90 |
mood_mapping[i] = count
|
| 91 |
+
st.write(unique_moods)
|
| 92 |
st.write(mood_mapping)
|
| 93 |
|