Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -119,9 +119,10 @@ st.title("Random Experiment:Will it rain or not with respect to trail")
|
|
| 119 |
st.write("""
|
| 120 |
This simple experiment simulates a random prediction will it rain or not with respect to trail. Each time you click the button you will get a random result that it will rain or not.
|
| 121 |
""")
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
|
|
|
|
|
| 119 |
st.write("""
|
| 120 |
This simple experiment simulates a random prediction will it rain or not with respect to trail. Each time you click the button you will get a random result that it will rain or not.
|
| 121 |
""")
|
| 122 |
+
|
| 123 |
+
Trail = st.number_input("Number of Trials:", min_value=1, max_value=100, value=7)
|
| 124 |
+
if st.button('Start the Experiment: Will it Rain or Not?'):
|
| 125 |
+
st.write(f"Running {Trail} trials...")
|
| 126 |
+
for i in range(1, Trail + 1):
|
| 127 |
+
result = random.choice(['Rain', 'No Rain'])
|
| 128 |
+
st.write(f"Trial {i}: **{result}**")
|