Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -134,17 +134,17 @@ def changedatashape():
|
|
134 |
os.remove('sample.csv')
|
135 |
|
136 |
|
137 |
-
jpype.startJVM(jpype.getDefaultJVMPath())
|
138 |
|
139 |
|
140 |
|
141 |
|
142 |
def generate_result():
|
143 |
# Define your Java command as a string
|
144 |
-
java_command = "java -version"
|
145 |
-
|
146 |
# Run the Java command in a subprocess
|
147 |
-
jpype.runScript(java_command)
|
148 |
|
149 |
|
150 |
|
@@ -197,4 +197,4 @@ if st.button("Predict result"):
|
|
197 |
|
198 |
|
199 |
# Shutdown the JVM when you're done
|
200 |
-
jpype.shutdownJVM()
|
|
|
134 |
os.remove('sample.csv')
|
135 |
|
136 |
|
137 |
+
#jpype.startJVM(jpype.getDefaultJVMPath())
|
138 |
|
139 |
|
140 |
|
141 |
|
142 |
def generate_result():
|
143 |
# Define your Java command as a string
|
144 |
+
#java_command = "java -version"
|
145 |
+
os.system("where java")
|
146 |
# Run the Java command in a subprocess
|
147 |
+
#jpype.runScript(java_command)
|
148 |
|
149 |
|
150 |
|
|
|
197 |
|
198 |
|
199 |
# Shutdown the JVM when you're done
|
200 |
+
#jpype.shutdownJVM()
|