Spaces:
Runtime error
Runtime error
File size: 684 Bytes
c759d25 915df4b 0d89931 7318c6b 60a42e1 0159aaf 60a42e1 0d89931 fe6be00 7318c6b 60a42e1 7318c6b 0d89931 0159aaf 7318c6b c759d25 7318c6b 0d89931 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
import gradio as gr
from deepengineer.backend.gradio_tools import run_agent_stream
from deepengineer.common_path import DATA_DIR
with gr.Blocks() as demo:
gr.Markdown("# Agent Interface with Real‑Time Tool Logging")
user_input = gr.Textbox(label="User Message")
log_output = gr.Textbox(label="Tool Invocation Log", interactive=False)
agent_output = gr.Markdown(
label="Agent Response",
)
send = gr.Button("Send")
send.click(
fn=run_agent_stream,
inputs=[user_input],
outputs=[agent_output, log_output],
concurrency_limit=2,
)
if __name__ == "__main__":
demo.launch(allowed_paths=[DATA_DIR])
|