reichaves commited on
Commit
7db42c2
1 Parent(s): 10d5c61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -6,6 +6,12 @@
6
  # Embeddings de texto usando o modelo all-MiniLM-L6-v2 do Hugging Face
7
  #
8
 
 
 
 
 
 
 
9
  import streamlit as st
10
  from langchain.chains import create_history_aware_retriever, create_retrieval_chain
11
  from langchain.chains.combine_documents import create_stuff_documents_chain
@@ -191,4 +197,4 @@ if groq_api_key and huggingface_api_token:
191
  for message in session_history.messages:
192
  st.write(f"**{message.type}:** {message.content}")
193
  else:
194
- st.warning("Por favor, insira tanto a chave da API do Groq quanto o token da API do Hugging Face.")
 
6
  # Embeddings de texto usando o modelo all-MiniLM-L6-v2 do Hugging Face
7
  #
8
 
9
+ import sys
10
+ import platform
11
+
12
+ __import__('pysqlite3')
13
+ sys.modules['sqlite3'] = sys.modules.pop('pysqlite3')
14
+
15
  import streamlit as st
16
  from langchain.chains import create_history_aware_retriever, create_retrieval_chain
17
  from langchain.chains.combine_documents import create_stuff_documents_chain
 
197
  for message in session_history.messages:
198
  st.write(f"**{message.type}:** {message.content}")
199
  else:
200
+ st.warning("Por favor, insira tanto a chave da API do Groq quanto o token da API do Hugging Face.")