MikeMann commited on
Commit
68d42fd
·
1 Parent(s): 6fc19e9

fixed Chatformat

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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
- match = re.findall(pattern, final_prompt)
 
 
 
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(