thhung commited on
Commit
d77ad9c
·
1 Parent(s): 7236765

[app] update logic clone

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -20,11 +20,9 @@ else:
20
  source_folder = "./my_number_temp/hnrecommender/"
21
  destination_folder = os.getcwd() # Gets the path of the current folder
22
  # Check if the destination folder exists and remove it if it does
23
- if os.path.exists(destination_folder):
24
- shutil.rmtree(destination_folder)
25
-
26
- # Copy the source folder to the destination
27
- shutil.copytree(source_folder, destination_folder)
28
 
29
  import streamlit as st
30
 
 
20
  source_folder = "./my_number_temp/hnrecommender/"
21
  destination_folder = os.getcwd() # Gets the path of the current folder
22
  # Check if the destination folder exists and remove it if it does
23
+ if not os.path.exists(destination_folder):
24
+ # Copy the source folder to the destination
25
+ shutil.copytree(source_folder, destination_folder)
 
 
26
 
27
  import streamlit as st
28