Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,14 @@
|
|
1 |
# interface.py
|
2 |
|
3 |
import gradio as gr
|
4 |
-
from main import query_index, ask_llm_with_context
|
5 |
|
6 |
import datetime
|
7 |
|
|
|
|
|
|
|
|
|
8 |
def log_question_response(question, answer):
|
9 |
timestamp = datetime.datetime.now().isoformat()
|
10 |
with open("chat_log.txt", "a", encoding="utf-8") as f:
|
|
|
1 |
# interface.py
|
2 |
|
3 |
import gradio as gr
|
4 |
+
from main import query_index, ask_llm_with_context, initialize_index
|
5 |
|
6 |
import datetime
|
7 |
|
8 |
+
|
9 |
+
initialize_index(update_mode="none")
|
10 |
+
|
11 |
+
|
12 |
def log_question_response(question, answer):
|
13 |
timestamp = datetime.datetime.now().isoformat()
|
14 |
with open("chat_log.txt", "a", encoding="utf-8") as f:
|