Namitg02 commited on
Commit
e81adf0
·
verified ·
1 Parent(s): 84ef949

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
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)