Harshil24 commited on
Commit
cf1e2af
·
1 Parent(s): 2c5d11c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -12
app.py CHANGED
@@ -136,13 +136,7 @@ def changedatashape():
136
  command = "java -version"
137
 
138
  def generate_result():
139
-
140
- try:
141
- subprocess.run(command)
142
- except subprocess.CalledProcessError as e:
143
- print(f"Command execution failed with error code {e.returncode}: {e.stderr}")
144
- except Exception as e:
145
- print(f"An unexpected error occurred: {str(e)}")
146
 
147
 
148
 
@@ -185,8 +179,9 @@ def predict(m,historical=True):
185
 
186
  if st.button("Predict result"):
187
  predict(9,historical=False)
188
- predi = pd.read_csv('predictions.csv')
189
- if 0.5<predi.iloc[0,1]<0.63:
190
- st.write("increase")
191
- else:
192
- st.write("decrease")
 
 
136
  command = "java -version"
137
 
138
  def generate_result():
139
+ os.system(command)
 
 
 
 
 
 
140
 
141
 
142
 
 
179
 
180
  if st.button("Predict result"):
181
  predict(9,historical=False)
182
+ if 1==2:
183
+ predi = pd.read_csv('predictions.csv')
184
+ if 0.5<predi.iloc[0,1]<0.63:
185
+ st.write("increase")
186
+ else:
187
+ st.write("decrease")