MilesCranmer commited on
Commit
1068831
·
unverified ·
1 Parent(s): fd867c5

Automatically install PySR at init

Browse files
Files changed (1) hide show
  1. gui/app.py +2 -1
gui/app.py CHANGED
@@ -11,6 +11,8 @@ empty_df = pd.DataFrame(
11
  }
12
  )
13
 
 
 
14
  def greet(
15
  file_obj: tempfile._TemporaryFileWrapper,
16
  col_to_fit: str,
@@ -34,7 +36,6 @@ def greet(
34
  "Please upload a CSV file!",
35
  )
36
 
37
- os.system("bash install_pysr.sh")
38
  os.system(f"python run_pysr_and_save.py --niterations {niterations} --binary_operators '{binary_operators}' --unary_operators '{unary_operators}' --col_to_fit {col_to_fit} --filename {file_obj.name}")
39
  df = pd.read_csv("pysr_output.csv")
40
  error_log = open("error.log", "r").read()
 
11
  }
12
  )
13
 
14
+ os.system("bash install_pysr.sh")
15
+
16
  def greet(
17
  file_obj: tempfile._TemporaryFileWrapper,
18
  col_to_fit: str,
 
36
  "Please upload a CSV file!",
37
  )
38
 
 
39
  os.system(f"python run_pysr_and_save.py --niterations {niterations} --binary_operators '{binary_operators}' --unary_operators '{unary_operators}' --col_to_fit {col_to_fit} --filename {file_obj.name}")
40
  df = pd.read_csv("pysr_output.csv")
41
  error_log = open("error.log", "r").read()