darshil3011 commited on
Commit
17c2ff8
·
verified ·
1 Parent(s): c96b69a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ def full_chat_pipeline(user_query, openai_key):
17
  # Step 2: Format prompt with detected intent
18
  loaded_texts = load_intent_texts(intents, get_txt_files)
19
  #selected_intents = ', '.join(intents.get("intents", []))
20
- selected_intent_description = load_intent_description(intents.get("intents", []))
21
  print(selected_intent_description)
22
  context_str = '\n\n'.join(f"{k}:\n{v}" for k, v in loaded_texts.items())
23
  formatted_prompt = f'''
 
17
  # Step 2: Format prompt with detected intent
18
  loaded_texts = load_intent_texts(intents, get_txt_files)
19
  #selected_intents = ', '.join(intents.get("intents", []))
20
+ selected_intent_description = load_intent_description(intents)
21
  print(selected_intent_description)
22
  context_str = '\n\n'.join(f"{k}:\n{v}" for k, v in loaded_texts.items())
23
  formatted_prompt = f'''