reach-vb HF staff commited on
Commit
28545aa
1 Parent(s): 7e7dbaf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -88,7 +88,7 @@ def upload_to_hub(path, upload_repo, hf_path, oauth_token):
88
  files = list_files_in_folder(path)
89
  print(files)
90
  for file in files:
91
- file_path = os.path.join('.', file)
92
  print(f"Uploading file: {file_path}")
93
  api.upload_file(
94
  path_or_fileobj=file_path,
 
88
  files = list_files_in_folder(path)
89
  print(files)
90
  for file in files:
91
+ file_path = os.path.join(path, file)
92
  print(f"Uploading file: {file_path}")
93
  api.upload_file(
94
  path_or_fileobj=file_path,