Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
server/response_generator.py
CHANGED
|
@@ -85,12 +85,12 @@ def call_llm(prompt: str) -> str:
|
|
| 85 |
# =========================
|
| 86 |
# MAIN FUNCTION
|
| 87 |
# =========================
|
| 88 |
-
def generate_response(action_type: str, message: str, state,
|
| 89 |
"""
|
| 90 |
Generate patient response using LLM
|
| 91 |
"""
|
| 92 |
|
| 93 |
-
prompt = build_prompt(action_type, message, state,
|
| 94 |
|
| 95 |
response = call_llm(prompt)
|
| 96 |
|
|
|
|
| 85 |
# =========================
|
| 86 |
# MAIN FUNCTION
|
| 87 |
# =========================
|
| 88 |
+
def generate_response(action_type: str, message: str, state, ) -> str:
|
| 89 |
"""
|
| 90 |
Generate patient response using LLM
|
| 91 |
"""
|
| 92 |
|
| 93 |
+
prompt = build_prompt(action_type, message, state, state.disorder)
|
| 94 |
|
| 95 |
response = call_llm(prompt)
|
| 96 |
|