jayash391 commited on
Commit
825fa04
·
verified ·
1 Parent(s): b1b1a06

Update sherlock2.py

Browse files
Files changed (1) hide show
  1. sherlock2.py +5 -1
sherlock2.py CHANGED
@@ -249,8 +249,10 @@ def investigate():
249
  st.header("Case Report")
250
  st.write(final_report.text)
251
 
252
- # Display chat history and allow user input
253
  display_chat_history()
 
 
254
  user_query = st.text_input("Ask Sherlock:", key="user_input")
255
  if user_query:
256
  response = model.generate_content([sherlock_persona, sherlock_guidelines, user_query])
@@ -263,6 +265,8 @@ def investigate():
263
  else:
264
  st.info("Please upload both case documents and images to proceed with the investigation.")
265
  display_chat_history()
 
 
266
  user_query = st.text_input("Ask Sherlock:", key="user_input")
267
  if user_query:
268
  response = model.generate_content([sherlock_persona, sherlock_guidelines, user_query])
 
249
  st.header("Case Report")
250
  st.write(final_report.text)
251
 
252
+ # Display chat history
253
  display_chat_history()
254
+
255
+ # Render user input box
256
  user_query = st.text_input("Ask Sherlock:", key="user_input")
257
  if user_query:
258
  response = model.generate_content([sherlock_persona, sherlock_guidelines, user_query])
 
265
  else:
266
  st.info("Please upload both case documents and images to proceed with the investigation.")
267
  display_chat_history()
268
+
269
+ # Render user input box
270
  user_query = st.text_input("Ask Sherlock:", key="user_input")
271
  if user_query:
272
  response = model.generate_content([sherlock_persona, sherlock_guidelines, user_query])