heatingma commited on
Commit
143db4d
1 Parent(s): e9cea67

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -21,12 +21,7 @@ def _handle_mis_solve(file_path: str):
21
  shutil.move(file_path, GPICKLE_PATH)
22
  start_time = time.time()
23
  solver = KaMISSolver()
24
- try:
25
- solver.solve("tmp")
26
- except:
27
- solver.recompile_kamis()
28
- os.system("conda activate base")
29
- solver.solve("tmp")
30
  solved_time = time.time() - start_time
31
  draw_mis_problem(
32
  save_path=MIS_PROBLEM_PATH,
@@ -49,8 +44,6 @@ def handle_mis_solve(file_path: str):
49
  return message
50
  except Exception as e:
51
  message = str(e)
52
- import site
53
- message += site.getsitepackages()[0]
54
  return message, MIS_PROBLEM_PATH, MIS_SOLUTION_PATH
55
 
56
 
 
21
  shutil.move(file_path, GPICKLE_PATH)
22
  start_time = time.time()
23
  solver = KaMISSolver()
24
+ solver.solve("tmp")
 
 
 
 
 
25
  solved_time = time.time() - start_time
26
  draw_mis_problem(
27
  save_path=MIS_PROBLEM_PATH,
 
44
  return message
45
  except Exception as e:
46
  message = str(e)
 
 
47
  return message, MIS_PROBLEM_PATH, MIS_SOLUTION_PATH
48
 
49