Wajahat698 commited on
Commit
ecb75f4
·
verified ·
1 Parent(s): 6fcf6f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -26,8 +26,7 @@ logging.basicConfig(level=logging.INFO)
26
  logger = logging.getLogger(__name__)
27
  load_dotenv()
28
 
29
- if 'chat_active' not in st.session_state:
30
- st.session_state.chat_active = False
31
 
32
 
33
  # Define and validate API keys
@@ -473,8 +472,7 @@ def clean_text_for_markdown(text):
473
  return text
474
 
475
  prompt = st.chat_input("")
476
- if prompt and not st.session_state.chat_active:
477
- st.session_state.chat_active = True
478
 
479
 
480
  # Add user message to chat history
 
26
  logger = logging.getLogger(__name__)
27
  load_dotenv()
28
 
29
+
 
30
 
31
 
32
  # Define and validate API keys
 
472
  return text
473
 
474
  prompt = st.chat_input("")
475
+ if prompt :
 
476
 
477
 
478
  # Add user message to chat history