JarrettYe commited on
Commit
0bcc04d
·
1 Parent(s): 3725eab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -19,7 +19,8 @@ def get_w_markdown(w):
19
 
20
 
21
  def anki_optimizer(file: gr.File, timezone, next_day_starts_at, revlog_start_date, requestRetention,
22
- progress=gr.Progress(track_tqdm=True)):
 
23
  if file is None or (not file.name.endswith(".apkg") and not file.name.endswith(".colpkg")):
24
  raise ValueError("Please upload a deck/collection file.")
25
  if timezone == "":
@@ -63,7 +64,7 @@ def anki_optimizer(file: gr.File, timezone, next_day_starts_at, revlog_start_dat
63
  # Ratings
64
  {rating_markdown}
65
  """
66
- os.chdir('../../..')
67
  print(os.getcwd())
68
  files_out = [proj_dir / file for file in files if (proj_dir / file).exists()]
69
  cleanup(proj_dir, files)
 
19
 
20
 
21
  def anki_optimizer(file: gr.File, timezone, next_day_starts_at, revlog_start_date, requestRetention,
22
+ progress=gr.Progress(track_tqdm=True)):
23
+ os.chdir('/home/user/app')
24
  if file is None or (not file.name.endswith(".apkg") and not file.name.endswith(".colpkg")):
25
  raise ValueError("Please upload a deck/collection file.")
26
  if timezone == "":
 
64
  # Ratings
65
  {rating_markdown}
66
  """
67
+ os.chdir('/home/user/app')
68
  print(os.getcwd())
69
  files_out = [proj_dir / file for file in files if (proj_dir / file).exists()]
70
  cleanup(proj_dir, files)