fixed Chatformat
Browse files
app.py
CHANGED
|
@@ -359,10 +359,12 @@ class BSIChatbot:
|
|
| 359 |
# question=query, context=context, history=history[:-1]
|
| 360 |
#)
|
| 361 |
|
| 362 |
-
|
| 363 |
print(f"Query:\n{final_prompt}")
|
| 364 |
pattern = r"Filename:(.*?);"
|
| 365 |
-
|
|
|
|
|
|
|
|
|
|
| 366 |
self.images=match
|
| 367 |
|
| 368 |
stream = self.llm_client.chat.completions.create(
|
|
|
|
| 359 |
# question=query, context=context, history=history[:-1]
|
| 360 |
#)
|
| 361 |
|
|
|
|
| 362 |
print(f"Query:\n{final_prompt}")
|
| 363 |
pattern = r"Filename:(.*?);"
|
| 364 |
+
last_value = list(last_dict.values())[-1]
|
| 365 |
+
|
| 366 |
+
|
| 367 |
+
match = re.findall(pattern, last_value)
|
| 368 |
self.images=match
|
| 369 |
|
| 370 |
stream = self.llm_client.chat.completions.create(
|