Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -211,7 +211,7 @@ just reformulate it if needed and otherwise return it as is."""),
|
|
| 211 |
diagnosis_characteristics: List[DiagnosisCharacteristic] = field(metadata={"description": "List of primary cancers"})
|
| 212 |
cancer_related_medications: List[CancerRelatedMedication] = field(metadata={"description": "List of cancer related medication given to the patient"})
|
| 213 |
|
| 214 |
-
structured_llm =
|
| 215 |
try:
|
| 216 |
output = structured_llm.invoke(context)
|
| 217 |
st.subheader("Generated Structured Output:")
|
|
|
|
| 211 |
diagnosis_characteristics: List[DiagnosisCharacteristic] = field(metadata={"description": "List of primary cancers"})
|
| 212 |
cancer_related_medications: List[CancerRelatedMedication] = field(metadata={"description": "List of cancer related medication given to the patient"})
|
| 213 |
|
| 214 |
+
structured_llm = llm.with_structured_output(CancerInformation)
|
| 215 |
try:
|
| 216 |
output = structured_llm.invoke(context)
|
| 217 |
st.subheader("Generated Structured Output:")
|