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

[app] update logic clone

Browse files
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -5,7 +5,7 @@ import shutil
5
 
6
 
7
  git_url = os.getenv("GIT_URL")
8
- repo_dir = "./temp"
9
  # Specify the path to the folder
10
  # Check if the folder exists and remove it if it does
11
  if os.path.exists(repo_dir) and os.path.isdir(repo_dir):
@@ -17,8 +17,7 @@ else:
17
 
18
 
19
  # Specify the folder you want to move and the current folder path
20
- source_folder = "./temp/hnrecommender/"
21
-
22
  destination_folder = os.getcwd() # Gets the path of the current folder
23
  # Check if the destination folder exists and remove it if it does
24
  if os.path.exists(destination_folder):
@@ -27,10 +26,6 @@ if os.path.exists(destination_folder):
27
  # Copy the source folder to the destination
28
  shutil.copytree(source_folder, destination_folder)
29
 
30
-
31
- # Move the folder
32
- shutil.copy(source_folder, destination_folder)
33
-
34
  import streamlit as st
35
 
36
  from hnrecommender import recommend_hacker_news
 
5
 
6
 
7
  git_url = os.getenv("GIT_URL")
8
+ repo_dir = "./my_number_temp"
9
  # Specify the path to the folder
10
  # Check if the folder exists and remove it if it does
11
  if os.path.exists(repo_dir) and os.path.isdir(repo_dir):
 
17
 
18
 
19
  # Specify the folder you want to move and the current folder path
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):
 
26
  # Copy the source folder to the destination
27
  shutil.copytree(source_folder, destination_folder)
28
 
 
 
 
 
29
  import streamlit as st
30
 
31
  from hnrecommender import recommend_hacker_news