Spaces:
Running
Running
luanpoppe
commited on
Commit
·
5acd42c
1
Parent(s):
59f0a20
fix: enviar
Browse files
_utils/gerar_documento_utils/GerarDocumento.py
CHANGED
@@ -501,9 +501,9 @@ class GerarDocumento:
|
|
501 |
self.axiom_instance.send_axiom("COMEÇANDO A REQUISIÇÃO FINAL PARA O BUBBLE")
|
502 |
|
503 |
enviar_resposta_final(
|
504 |
-
serializer.doc_id, # type: ignore
|
505 |
-
serializer.form_response_id, # type: ignore
|
506 |
-
serializer.version, # type: ignore
|
507 |
self.texto_completo_como_html,
|
508 |
False,
|
509 |
cast(str, self.titulo_do_documento),
|
@@ -518,7 +518,7 @@ class GerarDocumento:
|
|
518 |
context_primeiro_prompt: str,
|
519 |
):
|
520 |
|
521 |
-
llm = self.select_model_for_last_requests(llm_ultimas_requests) # type: ignore
|
522 |
prompt_instance = Prompt()
|
523 |
|
524 |
documento_gerado = await self.gerar_documento_utils.checar_se_resposta_vazia_do_documento_final(
|
|
|
501 |
self.axiom_instance.send_axiom("COMEÇANDO A REQUISIÇÃO FINAL PARA O BUBBLE")
|
502 |
|
503 |
enviar_resposta_final(
|
504 |
+
self.serializer.doc_id, # type: ignore
|
505 |
+
self.serializer.form_response_id, # type: ignore
|
506 |
+
self.serializer.version, # type: ignore
|
507 |
self.texto_completo_como_html,
|
508 |
False,
|
509 |
cast(str, self.titulo_do_documento),
|
|
|
518 |
context_primeiro_prompt: str,
|
519 |
):
|
520 |
|
521 |
+
llm = self.gerar_documento_utils.select_model_for_last_requests(llm_ultimas_requests) # type: ignore
|
522 |
prompt_instance = Prompt()
|
523 |
|
524 |
documento_gerado = await self.gerar_documento_utils.checar_se_resposta_vazia_do_documento_final(
|
gerar_documento/views.py
CHANGED
@@ -148,7 +148,9 @@ class GerarEmentaView(AsyncAPIView):
|
|
148 |
obj, True, self.axiom_instance
|
149 |
)
|
150 |
|
151 |
-
listaPDFs = [l["link_arquivo"] for l in data["files"]]
|
|
|
|
|
152 |
|
153 |
self.axiom_instance.send_axiom(f"listaPDFs: {listaPDFs}")
|
154 |
|
|
|
148 |
obj, True, self.axiom_instance
|
149 |
)
|
150 |
|
151 |
+
# listaPDFs = [l["link_arquivo"] for l in data["files"]]
|
152 |
+
listaPDFs = json.loads(obj.files)
|
153 |
+
listaPDFs = [l["link_arquivo"] for l in listaPDFs]
|
154 |
|
155 |
self.axiom_instance.send_axiom(f"listaPDFs: {listaPDFs}")
|
156 |
|