Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -113,10 +113,8 @@ st.title("Random Experiment: Coin Toss")
|
|
| 113 |
|
| 114 |
# Description
|
| 115 |
st.write("""
|
| 116 |
-
This simple experiment simulates a random
|
| 117 |
""")
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
if st.button('Toss the Coin'):
|
| 121 |
-
result = random.choice(['Heads', 'Tails']) # Randomly choose between Heads or Tails
|
| 122 |
st.write(f"The result is: **{result}**")
|
|
|
|
| 113 |
|
| 114 |
# Description
|
| 115 |
st.write("""
|
| 116 |
+
This simple experiment simulates a random prediction will it rain or not. Each time you click the button you will get a random result that it will rain or not.
|
| 117 |
""")
|
| 118 |
+
if st.button('Will it rain or not'):
|
| 119 |
+
result = random.choice(['Rain','NoRain'])
|
|
|
|
|
|
|
| 120 |
st.write(f"The result is: **{result}**")
|