AKV24 commited on
Commit
e0c7e62
·
verified ·
1 Parent(s): 57060b1

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +1 -4
src/streamlit_app.py CHANGED
@@ -4,7 +4,6 @@ from openai import OpenAI
4
  from dotenv import load_dotenv
5
  import os
6
 
7
- # ==== Load API Key from .env ====
8
  load_dotenv()
9
  hf_api_key = os.getenv("SECRET")
10
 
@@ -57,10 +56,8 @@ def render_markdown_with_latex(text: str):
57
  """
58
  st.markdown(mathjax_script, unsafe_allow_html=True)
59
  st.markdown(text, unsafe_allow_html=True)
60
- # ... (keep all your existing imports and setup code until the message display section)
61
- # ... (keep all your existing imports and setup code until the message display section)
62
 
63
- # ==== Display Chat History ====
64
  for i, msg in enumerate(st.session_state.messages):
65
  with st.chat_message(msg["role"]):
66
  if msg["role"] == "assistant":
 
4
  from dotenv import load_dotenv
5
  import os
6
 
 
7
  load_dotenv()
8
  hf_api_key = os.getenv("SECRET")
9
 
 
56
  """
57
  st.markdown(mathjax_script, unsafe_allow_html=True)
58
  st.markdown(text, unsafe_allow_html=True)
 
 
59
 
60
+
61
  for i, msg in enumerate(st.session_state.messages):
62
  with st.chat_message(msg["role"]):
63
  if msg["role"] == "assistant":