caarleexx commited on
Commit
fa04310
·
verified ·
1 Parent(s): 47475dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,7 +4,7 @@ import gradio as gr
4
  import os
5
  import google.generativeai as genai
6
  import json
7
- from google.generativeai.tool import GoogleSearch
8
 
9
  # --- 1. CARREGAMENTO DO CONTEXTO FILOSÓFICO IMUTÁVEL ---
10
  def carregar_contexto_filosofico(caminho_arquivo="epct0.md"):
@@ -33,7 +33,7 @@ genai.configure(api_key=api_key)
33
  # O Conselheiro, para raciocínio profundo
34
  counselor_model = genai.GenerativeModel('gemini-flash-latest')
35
  # O Supervisor, rápido e com ferramenta de busca para fact-checking
36
- supervisor_model = genai.GenerativeModel('gemini-flash-latest', tools=[GoogleSearch()])
37
 
38
 
39
  # --- 3. DEFINIÇÃO DOS PROMPTS ---
 
4
  import os
5
  import google.generativeai as genai
6
  import json
7
+ #from google.generativeai.tool import GoogleSearch
8
 
9
  # --- 1. CARREGAMENTO DO CONTEXTO FILOSÓFICO IMUTÁVEL ---
10
  def carregar_contexto_filosofico(caminho_arquivo="epct0.md"):
 
33
  # O Conselheiro, para raciocínio profundo
34
  counselor_model = genai.GenerativeModel('gemini-flash-latest')
35
  # O Supervisor, rápido e com ferramenta de busca para fact-checking
36
+ supervisor_model = genai.GenerativeModel('gemini-flash-latest'])
37
 
38
 
39
  # --- 3. DEFINIÇÃO DOS PROMPTS ---