leandroaraujodev commited on
Commit
dc34793
·
verified ·
1 Parent(s): 6a054db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -71,9 +71,6 @@ if sidebar_option == "gpt-3.5-turbo":
71
  Settings.llm = OpenAI(model="gpt-3.5-turbo")
72
  Settings.embed_model = OpenAIEmbedding(model_name="text-embedding-ada-002")
73
  # elif sidebar_option == 'NuExtract-1.5':
74
- # logging.basicConfig(stream=sys.stdout, level=logging.INFO)
75
- # logging.getLogger().addHandler(logging.StreamHandler(stream=sys.stdout))
76
-
77
  # #Embedding do huggingface
78
  # Settings.embed_model = HuggingFaceEmbedding(
79
  # model_name="BAAI/bge-small-en-v1.5"
@@ -115,6 +112,10 @@ if sidebar_option == "gpt-3.5-turbo":
115
  else:
116
  raise Exception("Opção de LLM inválida!")
117
 
 
 
 
 
118
  # Diretórios configurados pelo usuário
119
  chat_store_path = os.path.join("chat_store", "chat_store.json")
120
  documents_path = os.path.join("documentos")
 
71
  Settings.llm = OpenAI(model="gpt-3.5-turbo")
72
  Settings.embed_model = OpenAIEmbedding(model_name="text-embedding-ada-002")
73
  # elif sidebar_option == 'NuExtract-1.5':
 
 
 
74
  # #Embedding do huggingface
75
  # Settings.embed_model = HuggingFaceEmbedding(
76
  # model_name="BAAI/bge-small-en-v1.5"
 
112
  else:
113
  raise Exception("Opção de LLM inválida!")
114
 
115
+ logging.basicConfig(stream=sys.stdout, level=logging.INFO)
116
+ logging.getLogger().addHandler(logging.StreamHandler(stream=sys.stdout))
117
+
118
+
119
  # Diretórios configurados pelo usuário
120
  chat_store_path = os.path.join("chat_store", "chat_store.json")
121
  documents_path = os.path.join("documentos")