chandan06 commited on
Commit
52e1ed7
1 Parent(s): 7d46d3d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -315,7 +315,7 @@ def upload():
315
  # if len(full_string) != 0:
316
  # qa = rag("\n\n".join(json.dumps(data_dict) for data_dict in full_string))
317
  # else:
318
- if not st.session_state['non_form_inference_performed']
319
  qa = rag("\n\n".join(json.dumps(data_dict) for data_dict in st.session_state['non_form_inference_data']))
320
  st.session_state['non_form_inference_performed'] = True
321
  st.session_state.rag = qa
 
315
  # if len(full_string) != 0:
316
  # qa = rag("\n\n".join(json.dumps(data_dict) for data_dict in full_string))
317
  # else:
318
+ if not st.session_state['non_form_inference_performed']:
319
  qa = rag("\n\n".join(json.dumps(data_dict) for data_dict in st.session_state['non_form_inference_data']))
320
  st.session_state['non_form_inference_performed'] = True
321
  st.session_state.rag = qa