Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -194,14 +194,16 @@ PARA CADA PERGUNTA:
|
|
| 194 |
# ============================================================================
|
| 195 |
# PASSOS P2-P8 (MELHORADOS COM X1-X2)
|
| 196 |
# ============================================================================
|
| 197 |
-
|
|
|
|
|
|
|
| 198 |
P1: {json.dumps(p1)}
|
| 199 |
X1-PERGUNTAS: {json.dumps(x1)}
|
| 200 |
X2-RESPOSTAS: {json.dumps(x2)}
|
| 201 |
PERGUNTA: {pergunta}
|
| 202 |
|
| 203 |
{{"cenarios": {{"provaveis": [{{"id": "C1", "desc": "curto"}}],
|
| 204 |
-
"improvaveis": [{{"id": "C2", "desc": "curto"}}]},
|
| 205 |
"total": 2}}"""
|
| 206 |
return chamar_gemini_json(prompt)
|
| 207 |
|
|
|
|
| 194 |
# ============================================================================
|
| 195 |
# PASSOS P2-P8 (MELHORADOS COM X1-X2)
|
| 196 |
# ============================================================================
|
| 197 |
+
defpasso_2_cenarios(pergunta: str, p1: Dict, x1: Dict, x2: Dict, historico: List) -> Dict:
|
| 198 |
+
logger.log("🎯 P2-CENÁRIOS (com X1-X2)", "TASK")
|
| 199 |
+
prompt = f"""P2-CENÁRIOS TELEGRÁFICO
|
| 200 |
P1: {json.dumps(p1)}
|
| 201 |
X1-PERGUNTAS: {json.dumps(x1)}
|
| 202 |
X2-RESPOSTAS: {json.dumps(x2)}
|
| 203 |
PERGUNTA: {pergunta}
|
| 204 |
|
| 205 |
{{"cenarios": {{"provaveis": [{{"id": "C1", "desc": "curto"}}],
|
| 206 |
+
"improvaveis": [{{"id": "C2", "desc": "curto"}}]}},
|
| 207 |
"total": 2}}"""
|
| 208 |
return chamar_gemini_json(prompt)
|
| 209 |
|