Spaces:
Sleeping
Sleeping
added introductory prompt
Browse files- backend.py +2 -3
backend.py
CHANGED
@@ -105,14 +105,13 @@ def handle_query(query_str: str,
|
|
105 |
]
|
106 |
)
|
107 |
index = build_index("data/chiarimento.txt")
|
108 |
-
|
109 |
-
|
110 |
|
111 |
else:
|
112 |
|
113 |
|
114 |
# The index is already built, no need to rebuild it.
|
115 |
-
conversation: List[ChatMessage] = []
|
116 |
for user, assistant in chat_history:
|
117 |
conversation.extend(
|
118 |
[
|
|
|
105 |
]
|
106 |
)
|
107 |
index = build_index("data/chiarimento.txt")
|
108 |
+
|
|
|
109 |
|
110 |
else:
|
111 |
|
112 |
|
113 |
# The index is already built, no need to rebuild it.
|
114 |
+
#conversation: List[ChatMessage] = []
|
115 |
for user, assistant in chat_history:
|
116 |
conversation.extend(
|
117 |
[
|