Darshan03 commited on
Commit
e08fc01
·
verified ·
1 Parent(s): 461d4de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = st.session_state.llm.with_structured_output(CancerInformation)
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:")