Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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'
|
| 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 ---
|