Spaces:
Sleeping
Sleeping
added introductory prompt
Browse files- backend.py +3 -4
backend.py
CHANGED
@@ -104,11 +104,10 @@ def handle_query(query_str: str,
|
|
104 |
|
105 |
|
106 |
else:
|
107 |
-
|
108 |
|
109 |
-
|
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:
|