Spaces:
Running
Running
removed query
Browse files
app.py
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
|
2 |
from omegaconf import OmegaConf
|
3 |
-
from query import VectaraQuery
|
4 |
import streamlit as st
|
5 |
import os
|
6 |
from PIL import Image
|
@@ -125,8 +124,7 @@ def launch_bot():
|
|
125 |
with st.spinner('Thinking...'):
|
126 |
res = st.session_state.agent.chat(prompt)
|
127 |
cleaned = re.sub(r'\[\d+\]', '', res.response)
|
128 |
-
|
129 |
-
|
130 |
message = {"role": "assistant", "content": cleaned, "avatar": '🤖'}
|
131 |
st.session_state.messages.append(message)
|
132 |
|
|
|
1 |
|
2 |
from omegaconf import OmegaConf
|
|
|
3 |
import streamlit as st
|
4 |
import os
|
5 |
from PIL import Image
|
|
|
124 |
with st.spinner('Thinking...'):
|
125 |
res = st.session_state.agent.chat(prompt)
|
126 |
cleaned = re.sub(r'\[\d+\]', '', res.response)
|
127 |
+
st.write(cleaned)
|
|
|
128 |
message = {"role": "assistant", "content": cleaned, "avatar": '🤖'}
|
129 |
st.session_state.messages.append(message)
|
130 |
|