acecalisto3 commited on
Commit
35dc1e6
·
1 Parent(s): 32945d9

key+update

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -11,7 +11,6 @@ import atexit
11
  import subprocess
12
  from urllib.parse import urlparse, quote
13
  import webbrowser
14
- import spaces
15
 
16
  # Constants
17
  INPUT_DIRECTORY = 'input'
@@ -453,13 +452,12 @@ def cleanup():
453
  try:
454
  temp_dirs = [REPOS_DIRECTORY]
455
  for dir_name in temp_dirs:
456
- if os.path.exists(dir _name):
457
  shutil.rmtree(dir_name)
458
  logging.shutdown()
459
  except Exception as e:
460
  print(f"Error during cleanup: {str(e)}")
461
 
462
- @spaces.GPU()
463
  def main():
464
  # Initialize environment and logger
465
  initialize_environment()
 
11
  import subprocess
12
  from urllib.parse import urlparse, quote
13
  import webbrowser
 
14
 
15
  # Constants
16
  INPUT_DIRECTORY = 'input'
 
452
  try:
453
  temp_dirs = [REPOS_DIRECTORY]
454
  for dir_name in temp_dirs:
455
+ if os.path.exists(dir_name):
456
  shutil.rmtree(dir_name)
457
  logging.shutdown()
458
  except Exception as e:
459
  print(f"Error during cleanup: {str(e)}")
460
 
 
461
  def main():
462
  # Initialize environment and logger
463
  initialize_environment()