Update app.py
Browse files
app.py
CHANGED
@@ -96,7 +96,11 @@ def format_prompt(prompt,retrieved_documents,k,history,memory_limit=3):
|
|
96 |
from huggingface_hub import HfApi
|
97 |
api = HfApi()
|
98 |
api.upload_file(
|
99 |
-
path_or_fileobj=file.txt
|
|
|
|
|
|
|
|
|
100 |
)
|
101 |
|
102 |
print(historylog)
|
|
|
96 |
from huggingface_hub import HfApi
|
97 |
api = HfApi()
|
98 |
api.upload_file(
|
99 |
+
path_or_fileobj=file.txt,
|
100 |
+
local_file_path = file.txt,
|
101 |
+
path_in_repo="file.txt",
|
102 |
+
repo_id="Namitg02/Test",
|
103 |
+
repo_type="space"
|
104 |
)
|
105 |
|
106 |
print(historylog)
|