gufett0 commited on
Commit
7282ada
·
1 Parent(s): 24bbb51

added introductory prompt

Browse files
Files changed (1) hide show
  1. backend.py +3 -4
backend.py CHANGED
@@ -104,11 +104,10 @@ def handle_query(query_str: str,
104
 
105
 
106
  else:
107
-
108
 
109
- # The index is already built, no need to rebuild it.
110
- storage_context = StorageContext.from_defaults(persist_dir=PERSIST_DIR)
111
- index = load_index_from_storage(storage_context)
112
  gr.Info("index costruito sulla base dello storage db")
113
 
114
  try:
 
104
 
105
 
106
  else:
 
107
 
108
+ index = build_index(matched_path)
109
+ #storage_context = StorageContext.from_defaults(persist_dir=PERSIST_DIR)
110
+ #index = load_index_from_storage(storage_context)
111
  gr.Info("index costruito sulla base dello storage db")
112
 
113
  try: