DOMMETI commited on
Commit
30afa4a
·
verified ·
1 Parent(s): 5d4ccda

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
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
- Trail=st.number_input("No_of_trail:",min_value=1,max_value=100,value=7)
123
- for i in range(1,Trail):
124
- st.button('Will it rain or not'):
125
- result = random.choice(['Rain','NoRain'])
126
- st.write(f"The result is: **{result}**")
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}**")