mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-06 19:40:28 +00:00
[ColossalQA] refactor server and webui & add new feature (#5138)
* refactor server and webui & add new feature * add requirements * modify readme and ui
This commit is contained in:
@@ -126,3 +126,11 @@ class DocumentLoader:
|
||||
else:
|
||||
# May ba a directory, we strictly follow the glob path and will not load files in subdirectories
|
||||
pass
|
||||
|
||||
def clear(self):
|
||||
"""
|
||||
Clear loaded data.
|
||||
"""
|
||||
self.data = {}
|
||||
self.kwargs = {}
|
||||
self.all_data = []
|
||||
|
Reference in New Issue
Block a user