AFischer1985 commited on
Commit
e69fdc8
1 Parent(s): 2f75669

Update run.py

Browse files
Files changed (1) hide show
  1. run.py +4 -4
run.py CHANGED
@@ -2,7 +2,7 @@
2
  # Title: Gradio Interface to LLM-chatbot (for recommending AI) with RAG-funcionality and ChromaDB on HF-Hub
3
  # Author: Andreas Fischer
4
  # Date: December 30th, 2023
5
- # Last update: December 30th, 2023
6
  ##############################################################################################################
7
 
8
 
@@ -72,9 +72,9 @@ import json
72
 
73
  def format_prompt(message, history):
74
  prompt = "<s>"
75
- for user_prompt, bot_response in history:
76
- prompt += f"[INST] {user_prompt} [/INST]"
77
- prompt += f" {bot_response}</s> "
78
  prompt += f"[INST] {message} [/INST]"
79
  return prompt
80
 
 
2
  # Title: Gradio Interface to LLM-chatbot (for recommending AI) with RAG-funcionality and ChromaDB on HF-Hub
3
  # Author: Andreas Fischer
4
  # Date: December 30th, 2023
5
+ # Last update: December 31th, 2023
6
  ##############################################################################################################
7
 
8
 
 
72
 
73
  def format_prompt(message, history):
74
  prompt = "<s>"
75
+ #for user_prompt, bot_response in history:
76
+ # prompt += f"[INST] {user_prompt} [/INST]"
77
+ # prompt += f" {bot_response}</s> "
78
  prompt += f"[INST] {message} [/INST]"
79
  return prompt
80