naman1102 commited on
Commit
a39aa16
·
1 Parent(s): ac1a436

Update chatbot_page.py

Browse files
Files changed (1) hide show
  1. chatbot_page.py +1 -1
chatbot_page.py CHANGED
@@ -40,7 +40,7 @@ def extract_keywords_from_conversation(history):
40
  conversation = "\n".join([f"User: {msg[0]}\nAssistant: {msg[1]}" for msg in history if msg[1]])
41
  prompt = (
42
  "Given the following conversation between a user and an assistant about finding an ideal open-source repo, "
43
- "extract about 5 keywords that best represent what the user is looking for. "
44
  "Return only the keywords as a comma-separated list.\n\nConversation:\n" + conversation
45
  )
46
  keywords = analyze_code(prompt)
 
40
  conversation = "\n".join([f"User: {msg[0]}\nAssistant: {msg[1]}" for msg in history if msg[1]])
41
  prompt = (
42
  "Given the following conversation between a user and an assistant about finding an ideal open-source repo, "
43
+ "extract about 5 keywords that would be most useful for searching Hugging Face repos to find the most relevant results for the user. "
44
  "Return only the keywords as a comma-separated list.\n\nConversation:\n" + conversation
45
  )
46
  keywords = analyze_code(prompt)