Spaces:
Sleeping
Sleeping
Update chat_ui.py
Browse files- chat_ui.py +4 -4
chat_ui.py
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
-
#
|
| 2 |
|
| 3 |
import os
|
| 4 |
import json
|
| 5 |
import streamlit as st
|
| 6 |
-
from
|
| 7 |
-
from
|
| 8 |
greeting_prompt,
|
| 9 |
info_collection_prompt,
|
| 10 |
tech_stack_prompt,
|
|
@@ -102,7 +102,7 @@ def render_chat_interface():
|
|
| 102 |
)
|
| 103 |
st.session_state.conversation.append(("bot", bot_msg))
|
| 104 |
|
| 105 |
-
# ✅ Fixed:
|
| 106 |
prompt = dynamic_generation_prompt(tech_stack)
|
| 107 |
questions = generate_response([("user", prompt)])
|
| 108 |
|
|
|
|
| 1 |
+
# chat_ui.py
|
| 2 |
|
| 3 |
import os
|
| 4 |
import json
|
| 5 |
import streamlit as st
|
| 6 |
+
from agent import generate_response # updated: flat repo, no chatbot/
|
| 7 |
+
from base_prompts import ( # updated: flat repo, no prompts/
|
| 8 |
greeting_prompt,
|
| 9 |
info_collection_prompt,
|
| 10 |
tech_stack_prompt,
|
|
|
|
| 102 |
)
|
| 103 |
st.session_state.conversation.append(("bot", bot_msg))
|
| 104 |
|
| 105 |
+
# ✅ Fixed: only user prompt
|
| 106 |
prompt = dynamic_generation_prompt(tech_stack)
|
| 107 |
questions = generate_response([("user", prompt)])
|
| 108 |
|