Update app.py
Browse filesrepo_type="space",
app.py
CHANGED
|
@@ -103,6 +103,7 @@ def write_to_file(file_name, value):
|
|
| 103 |
api.upload_file(
|
| 104 |
path_or_fileobj=file_name, # Use the file path instead of the file object
|
| 105 |
repo_id="mgreg555/docs_chat",
|
|
|
|
| 106 |
path_in_repo=file_name # Ensure this matches the file name if you want to keep the same name in the repo
|
| 107 |
)
|
| 108 |
|
|
|
|
| 103 |
api.upload_file(
|
| 104 |
path_or_fileobj=file_name, # Use the file path instead of the file object
|
| 105 |
repo_id="mgreg555/docs_chat",
|
| 106 |
+
repo_type="space",
|
| 107 |
path_in_repo=file_name # Ensure this matches the file name if you want to keep the same name in the repo
|
| 108 |
)
|
| 109 |
|