KeerthiVM commited on
Commit
2ea890b
Β·
1 Parent(s): 0e90055

Increased token limit

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -101,7 +101,8 @@ if uploaded_file is not None and uploaded_file != st.session_state.current_image
101
 
102
  for message in st.session_state.messages:
103
  with st.chat_message(message["role"]):
104
- st.markdown(remove_code_blocks(message["content"]))
 
105
 
106
  # === Chat Interface ===
107
  if prompt := st.chat_input("Ask a follow-up question..."):
@@ -125,7 +126,8 @@ if prompt := st.chat_input("Ask a follow-up question..."):
125
  else:
126
  result = classifier.predict(image, user_input=prompt, reuse_embeddings=False)
127
 
128
- st.markdown(remove_code_blocks(result["diagnosis"]))
 
129
  st.session_state.messages.append({"role": "assistant", "content": result["diagnosis"]})
130
 
131
  if st.session_state.messages and st.button("πŸ“„ Download Chat as PDF"):
 
101
 
102
  for message in st.session_state.messages:
103
  with st.chat_message(message["role"]):
104
+ # st.markdown(remove_code_blocks(message["content"]))
105
+ st.markdown(message["content"])
106
 
107
  # === Chat Interface ===
108
  if prompt := st.chat_input("Ask a follow-up question..."):
 
126
  else:
127
  result = classifier.predict(image, user_input=prompt, reuse_embeddings=False)
128
 
129
+ # st.markdown(remove_code_blocks(result["diagnosis"]))
130
+ st.markdown(result["diagnosis"])
131
  st.session_state.messages.append({"role": "assistant", "content": result["diagnosis"]})
132
 
133
  if st.session_state.messages and st.button("πŸ“„ Download Chat as PDF"):