Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
|
|
|
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")
|