Spaces:
Build error
Build error
niro commited on
Commit ·
535859d
1
Parent(s): 83d3dc7
asdfasdf
Browse files- files.py +1 -1
- question.py +1 -1
files.py
CHANGED
|
@@ -170,7 +170,7 @@ def filter_file(file, supabase, vector_store):
|
|
| 170 |
return False
|
| 171 |
|
| 172 |
def url_uploader(supabase, vector_store):
|
| 173 |
-
url = st.text_area("**Add an url**",placeholder="
|
| 174 |
button = st.button("Add the URL to the database")
|
| 175 |
|
| 176 |
if button:
|
|
|
|
| 170 |
return False
|
| 171 |
|
| 172 |
def url_uploader(supabase, vector_store):
|
| 173 |
+
url = st.text_area("**Add an url**",placeholder="vanti.ai")
|
| 174 |
button = st.button("Add the URL to the database")
|
| 175 |
|
| 176 |
if button:
|
question.py
CHANGED
|
@@ -78,7 +78,7 @@ def chat_with_doc(model, vector_store: SupabaseVectorStore, stats_db):
|
|
| 78 |
model_response = qa({"question": question})
|
| 79 |
logger.info('Result: %s', model_response)
|
| 80 |
|
| 81 |
-
st.session_state['chat_history'].append(("
|
| 82 |
|
| 83 |
# Display chat history
|
| 84 |
st.empty()
|
|
|
|
| 78 |
model_response = qa({"question": question})
|
| 79 |
logger.info('Result: %s', model_response)
|
| 80 |
|
| 81 |
+
st.session_state['chat_history'].append(("Vanti", model_response["answer"]))
|
| 82 |
|
| 83 |
# Display chat history
|
| 84 |
st.empty()
|