Spaces:
Runtime error
Runtime error
Commit
·
9b21883
1
Parent(s):
3c78943
Add new query function for chroma
Browse files
app.py
CHANGED
@@ -64,8 +64,14 @@ def chathmi(message, history):
|
|
64 |
response = QAQuery_p(message)
|
65 |
time.sleep(0.3)
|
66 |
print(history)
|
67 |
-
|
68 |
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
# chatbot = gr.Chatbot().style(color_map =("blue", "pink"))
|
70 |
# chatbot = gr.Chatbot(color_map =("blue", "pink"))
|
71 |
|
|
|
64 |
response = QAQuery_p(message)
|
65 |
time.sleep(0.3)
|
66 |
print(history)
|
67 |
+
yield response
|
68 |
|
69 |
+
def chathmi2(message, history):
|
70 |
+
response = QAQuery(message)
|
71 |
+
time.sleep(0.3)
|
72 |
+
print(history)
|
73 |
+
yield response
|
74 |
+
yield history
|
75 |
# chatbot = gr.Chatbot().style(color_map =("blue", "pink"))
|
76 |
# chatbot = gr.Chatbot(color_map =("blue", "pink"))
|
77 |
|