Update app.py
Browse files
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=
|
| 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
|