orionweller commited on
Commit
3238b05
1 Parent(s): 086f1cd
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -1,9 +1,8 @@
1
  import os
2
  # set JAVA_HOME by finding it, e.g. JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:bin/javac::")
3
  # print the contents of /user/lib
4
- print(os.listdir("/usr/lib"))
5
- print(os.listdir("/usr/lib/jvm"))
6
- os.environ["JAVA_HOME"] = "/usr/lib/jvm"
7
  print(os.environ["JAVA_HOME"])
8
 
9
  import gradio as gr
 
1
  import os
2
  # set JAVA_HOME by finding it, e.g. JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:bin/javac::")
3
  # print the contents of /user/lib
4
+ print(os.listdir("/usr/lib/jvm/default-java"))
5
+ os.environ["JAVA_HOME"] = "/usr/lib/jvm/default-java"
 
6
  print(os.environ["JAVA_HOME"])
7
 
8
  import gradio as gr