Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -99,9 +99,9 @@ def chat():
|
|
| 99 |
#old_db = session.get('old_db', None)
|
| 100 |
#print(f"Selected DB: {CHROMA_PATH}")
|
| 101 |
|
| 102 |
-
if TEMP_PATH is not None and TEMP_PATH != CHROMA_PATH:
|
| 103 |
-
|
| 104 |
-
TEMP_PATH = CHROMA_PATH
|
| 105 |
|
| 106 |
if request.method == 'POST':
|
| 107 |
query_text = request.form['query_text']
|
|
|
|
| 99 |
#old_db = session.get('old_db', None)
|
| 100 |
#print(f"Selected DB: {CHROMA_PATH}")
|
| 101 |
|
| 102 |
+
#if TEMP_PATH is not None and TEMP_PATH != CHROMA_PATH:
|
| 103 |
+
# session['history'] = []
|
| 104 |
+
#TEMP_PATH = CHROMA_PATH
|
| 105 |
|
| 106 |
if request.method == 'POST':
|
| 107 |
query_text = request.form['query_text']
|