Update app.py
Browse files
app.py
CHANGED
|
@@ -26,8 +26,7 @@ logging.basicConfig(level=logging.INFO)
|
|
| 26 |
logger = logging.getLogger(__name__)
|
| 27 |
load_dotenv()
|
| 28 |
|
| 29 |
-
|
| 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
|
| 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
|