fixed Chatformat
Browse files
app.py
CHANGED
@@ -361,7 +361,7 @@ class BSIChatbot:
|
|
361 |
|
362 |
print(f"Query:\n{final_prompt}")
|
363 |
pattern = r"Filename:(.*?);"
|
364 |
-
last_value =
|
365 |
|
366 |
|
367 |
match = re.findall(pattern, last_value)
|
|
|
361 |
|
362 |
print(f"Query:\n{final_prompt}")
|
363 |
pattern = r"Filename:(.*?);"
|
364 |
+
last_value = final_prompt[-1]["content"]
|
365 |
|
366 |
|
367 |
match = re.findall(pattern, last_value)
|