CCockrum commited on
Commit
062b2d3
·
verified ·
1 Parent(s): cb6f832

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -28,10 +28,6 @@ st.set_page_config(page_title="HAL - NASA ChatBot", page_icon="🚀")
28
  # ✅ Initialize Session State Variables (Ensuring Chat History Persists)
29
  if "chat_history" not in st.session_state:
30
  st.session_state.chat_history = [{"role": "assistant", "content": "Hello! How can I assist you today?"}]
31
- if "response_ready" not in st.session_state:
32
- st.session_state.response_ready = False
33
- if "follow_up" not in st.session_state:
34
- st.session_state.follow_up = ""
35
 
36
  # ✅ Initialize Hugging Face Model (Explicitly Set to CPU/GPU)
37
  def get_llm_hf_inference(model_id="mistralai/Mistral-7B-Instruct-v0.3", max_new_tokens=512, temperature=0.7):
 
28
  # ✅ Initialize Session State Variables (Ensuring Chat History Persists)
29
  if "chat_history" not in st.session_state:
30
  st.session_state.chat_history = [{"role": "assistant", "content": "Hello! How can I assist you today?"}]
 
 
 
 
31
 
32
  # ✅ Initialize Hugging Face Model (Explicitly Set to CPU/GPU)
33
  def get_llm_hf_inference(model_id="mistralai/Mistral-7B-Instruct-v0.3", max_new_tokens=512, temperature=0.7):