Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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)
|
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, intent_description_map)
|
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'''
|