Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -390,28 +390,19 @@ if __name__ == "__main__":
|
|
| 390 |
input_textbox = gr.Textbox(label="Digite sua pergunta...", lines=3)
|
| 391 |
with gr.Row():
|
| 392 |
submit_button = gr.Button("🚀 Enviar", variant="primary", scale=1)
|
| 393 |
-
|
| 394 |
-
|
| 395 |
with gr.Column(scale=2):
|
| 396 |
-
|
| 397 |
-
|
|
|
|
|
|
|
|
|
|
| 398 |
|
| 399 |
with gr.Group():
|
| 400 |
with gr.Accordion("📜 Ver Histórico de Governança", open=False):
|
| 401 |
gov_out#.render()
|
| 402 |
|
| 403 |
|
| 404 |
-
with gr.Tab("🛠️ Debug da Pipeline"):
|
| 405 |
-
gr.Markdown("## Visualização JSON por Passo do TURNO ATUAL")
|
| 406 |
-
with gr.Row():
|
| 407 |
-
p1_out#.render()
|
| 408 |
-
p2_out#.render()
|
| 409 |
-
with gr.Row():
|
| 410 |
-
p4_out#.render()
|
| 411 |
-
p5_out#.render()
|
| 412 |
-
with gr.Row():
|
| 413 |
-
p8_out#.render()
|
| 414 |
-
|
| 415 |
with gr.Tab("📝 Editor de Prompts"):
|
| 416 |
gr.Markdown(f"## Editor Dinâmico de Prompts ({PROMPT_FILENAME})")
|
| 417 |
prompts_editor = gr.Code(label="Conteúdo do JSON de Prompts", language="json", value=prompts_text_inicial, interactive=True, lines=30)
|
|
|
|
| 390 |
input_textbox = gr.Textbox(label="Digite sua pergunta...", lines=3)
|
| 391 |
with gr.Row():
|
| 392 |
submit_button = gr.Button("🚀 Enviar", variant="primary", scale=1)
|
| 393 |
+
|
|
|
|
| 394 |
with gr.Column(scale=2):
|
| 395 |
+
with gr.Group():
|
| 396 |
+
file_upload = gr.File(label="Anexar Arquivo", scale=2)
|
| 397 |
+
with gr.Group():
|
| 398 |
+
dna_json_hidden = gr.Textbox(value=json.dumps(criar_dna()), visible=False)
|
| 399 |
+
dna_view = gr.Code(label="DNA (Estado Completo da Conversa/Meta-Dados)", language="json", interactive=False, value=json.dumps(criar_dna(), indent=2, ensure_ascii=False))
|
| 400 |
|
| 401 |
with gr.Group():
|
| 402 |
with gr.Accordion("📜 Ver Histórico de Governança", open=False):
|
| 403 |
gov_out#.render()
|
| 404 |
|
| 405 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 406 |
with gr.Tab("📝 Editor de Prompts"):
|
| 407 |
gr.Markdown(f"## Editor Dinâmico de Prompts ({PROMPT_FILENAME})")
|
| 408 |
prompts_editor = gr.Code(label="Conteúdo do JSON de Prompts", language="json", value=prompts_text_inicial, interactive=True, lines=30)
|