Rupesh386 commited on
Commit
3413844
·
verified ·
1 Parent(s): 55f379e

Update test.py

Browse files
Files changed (1) hide show
  1. test.py +3 -3
test.py CHANGED
@@ -76,10 +76,10 @@ class test :
76
 
77
  age = st.sidebar.number_input('Enter your age(in years) : ',min_value=15,max_value=100,value=15)
78
  df['Age'] = age
79
- prediction = 0
80
 
81
  if st.sidebar.button("Submit"):
82
- for _ in range(3): # Print 'Processing' for 3 seconds
83
  sys.stdout.write("\rProcessing") # Print 'Processing' without a newline
84
  sys.stdout.flush()
85
  time.sleep(1)
@@ -95,7 +95,7 @@ class test :
95
 
96
  sys.stdout.write("\r ") # Clear the 'Processing' message
97
  sys.stdout.flush()
98
- prediction = S_algo.predict(df)
99
  if prediction==1:
100
 
101
  st.write('Output : Occasional Users')
 
76
 
77
  age = st.sidebar.number_input('Enter your age(in years) : ',min_value=15,max_value=100,value=15)
78
  df['Age'] = age
79
+
80
 
81
  if st.sidebar.button("Submit"):
82
+ for _ in range(3): # Print 'Processing' for 3 seconds
83
  sys.stdout.write("\rProcessing") # Print 'Processing' without a newline
84
  sys.stdout.flush()
85
  time.sleep(1)
 
95
 
96
  sys.stdout.write("\r ") # Clear the 'Processing' message
97
  sys.stdout.flush()
98
+ prediction = S_algo.predict(df)
99
  if prediction==1:
100
 
101
  st.write('Output : Occasional Users')