Update app.py
Browse files
app.py
CHANGED
|
@@ -39,19 +39,6 @@ class OrderState(TypedDict):
|
|
| 39 |
guard_result: str
|
| 40 |
conv_guard_result: str
|
| 41 |
|
| 42 |
-
# -------------------- Conversation Memory --------------------
|
| 43 |
-
# class ConversationMemory:
|
| 44 |
-
# def __init__(self):
|
| 45 |
-
# self.history = []
|
| 46 |
-
|
| 47 |
-
# def add(self, msg: dict):
|
| 48 |
-
# self.history.append(msg)
|
| 49 |
-
|
| 50 |
-
# def get(self):
|
| 51 |
-
# return self.history
|
| 52 |
-
|
| 53 |
-
# def clear(self):
|
| 54 |
-
# self.history = []
|
| 55 |
|
| 56 |
if "start_chat" not in st.session_state:
|
| 57 |
st.session_state.start_chat = False
|
|
|
|
| 39 |
guard_result: str
|
| 40 |
conv_guard_result: str
|
| 41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
if "start_chat" not in st.session_state:
|
| 44 |
st.session_state.start_chat = False
|