Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,6 @@ 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"):
|
|
@@ -30,8 +29,8 @@ if not api_key:
|
|
| 30 |
genai.configure(api_key=api_key)
|
| 31 |
|
| 32 |
# Inicializa os dois modelos separadamente
|
| 33 |
-
counselor_model = genai.GenerativeModel('gemini-
|
| 34 |
-
supervisor_model = genai.GenerativeModel('gemini-
|
| 35 |
|
| 36 |
|
| 37 |
# --- 3. DEFINIÇÃO DOS PROMPTS ---
|
|
|
|
| 4 |
import os
|
| 5 |
import google.generativeai as genai
|
| 6 |
import json
|
|
|
|
| 7 |
|
| 8 |
# --- 1. CARREGAMENTO DO CONTEXTO FILOSÓFICO IMUTÁVEL ---
|
| 9 |
def carregar_contexto_filosofico(caminho_arquivo="epct0.md"):
|
|
|
|
| 29 |
genai.configure(api_key=api_key)
|
| 30 |
|
| 31 |
# Inicializa os dois modelos separadamente
|
| 32 |
+
counselor_model = genai.GenerativeModel('gemini-flash-latest')
|
| 33 |
+
supervisor_model = genai.GenerativeModel('gemini-flash-latest')
|
| 34 |
|
| 35 |
|
| 36 |
# --- 3. DEFINIÇÃO DOS PROMPTS ---
|