Darshan03 commited on
Commit
e13955f
·
verified ·
1 Parent(s): 8c6700c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -99,7 +99,7 @@ if json_data is not None:
99
  st.success(f"File '{file_name}' successfully loaded and saved to:")
100
  st.code(file_path_to_process, language="plaintext")
101
 
102
- st.subheader("Process JSON Data and Enable Question Answering")
103
 
104
  if st.button("Process Data"):
105
  with st.spinner("Processing data..."):
@@ -247,7 +247,7 @@ just reformulate it if needed and otherwise return it as is."""),
247
  structured_llm = llm.with_structured_output(CancerInformation)
248
  try:
249
  output = structured_llm.invoke(context)
250
- st.subheader("Generated Structured Output:")
251
  st.json(output)
252
 
253
  # Save the generated output to a JSON file
 
99
  st.success(f"File '{file_name}' successfully loaded and saved to:")
100
  st.code(file_path_to_process, language="plaintext")
101
 
102
+ st.subheader("Task 1: Information Retrieval (Question-Answering)")
103
 
104
  if st.button("Process Data"):
105
  with st.spinner("Processing data..."):
 
247
  structured_llm = llm.with_structured_output(CancerInformation)
248
  try:
249
  output = structured_llm.invoke(context)
250
+ st.subheader("Task 2: Medical Data Extraction- Generated Structured Output:")
251
  st.json(output)
252
 
253
  # Save the generated output to a JSON file