mgreg555 commited on
Commit
a9fbcc7
·
verified ·
1 Parent(s): c4b66d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -98,7 +98,7 @@ def write_to_file(file_name, value):
98
 
99
  print(file_name)
100
  api.upload_file(
101
- path_or_fileobj='/' + file_name, # Use the file path instead of the file object
102
  repo_id="mgreg555/docs_chat",
103
  repo_type="space",
104
  path_in_repo=file_name # Ensure this matches the file name if you want to keep the same name in the repo
 
98
 
99
  print(file_name)
100
  api.upload_file(
101
+ path_or_fileobj=file_name, # Use the file path instead of the file object
102
  repo_id="mgreg555/docs_chat",
103
  repo_type="space",
104
  path_in_repo=file_name # Ensure this matches the file name if you want to keep the same name in the repo