kdembla commited on
Commit
2e371fb
·
verified ·
1 Parent(s): 8974dd7

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -140,4 +140,15 @@ with gr.Blocks() as demo:
140
  clear.click(lambda: chain.memory.clear(), None, chatbot)
141
 
142
  demo.queue()
143
- demo.launch()
 
 
 
 
 
 
 
 
 
 
 
 
140
  clear.click(lambda: chain.memory.clear(), None, chatbot)
141
 
142
  demo.queue()
143
+ demo.launch()
144
+
145
+ from huggingface_hub import HfApi
146
+ api = HfApi()
147
+
148
+ # Upload all the content from the local folder to your remote Space.
149
+ # By default, files are uploaded at the root of the repo
150
+ api.upload_folder(
151
+ folder_path="C:\WarehouseAsst_PoC\data",
152
+ repo_id="kdembla/WarehouseAssistant_RAGBOT",
153
+ repo_type="space",
154
+ )